These routines place data in a LOGINREC. The LOGINREC contains the user information that DB-Library sends to the server when the program calls dbopen to open a connection.
dblogin – allocates a LOGINREC structure for subsequent use by dbopen.
DBSETLUSER – sets the server user name in the LOGINREC.
DBSETLPWD – sets the server password in the LOGINREC.
DBSETLAPP – sets the application name in the LOGINREC.
DBSETLHOST – sets the host name in the LOGINREC.
DBSETLCHARSET – sets the character set in the LOGINREC.
DBSETLPACKET – sets the Tabular Data Stream™ (TDS) packet size for an application
dbgetpacket – returns the current TDS packet size
dbrpwset – adds a remote password to a LOGINREC structure. The server will use this password when it performs a remote procedure call on another server.
dbrpwclr – clears all remote passwords from a LOGINREC structure.
dbloginfree – frees a LOGINREC structure.