Sets the DB-Library client behavior to version 4.2 or 6.0 and later behavior in a LOGINREC structure.
RETCODE DBSETLVERSION (
PLOGINREC ploginrec,
BYTE version)
SUCCEED or FAIL.
If this function is not called, the default is DB-Library 4.2 behavior.
Using the DBVER60 value means that Microsoft® SQL Server™ treats the connection as a DB-Library 6.0 client in every way. SQL Server:
Using the DBVER42 value (or not calling DBSETLVERSION for the LOGINREC) means that SQL Server treats the connection as a DB-Library 4.2 client. SQL Server:
Note that using DBVER60 is not required to use SQL Server version 6.0 and later server cursors.
dblogin | dbsetlhost |
dbopen | dbsetlpwd |
dbsetlapp |