Determine which version of TDS (the Tabular Data Stream protocol) is being used.
int DBTDS(dbproc) DBPROCESS *dbproc;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.
The version of TDS used by dbproc to communicate with the server. Currently, the possible versions are:
DBTDS_2_0
DBTDS_3_4
DBTDS_4_0
DBTDS_4_2
DBTDS_4_6
DBTDS_4_9_5
DBTDS_5_0
DBTDS returns a negative integer on error.
DBTDS returns the version of TDS (Tabular Data Stream protocol) being used by dbproc to communicate with the server.