Sets the application name in the LOGINREC structure.
RETCODE DBSETLAPP (
PLOGINREC loginrec,
LPCSTR application );
SUCCEED or FAIL.
DBSETLAPP sets the application field in the LOGINREC structure. For it to have any effect, it must be called before dbopen. DBSETLAPP is optional. If you do not call DBSETLAPP, the application parameter of the LOGINREC structure is set to the calling application name by default instead of to NULL, as it is in SQL Server version 6.0 or earlier.
SQL Server uses the application name in its sysprocesses table to help identify your process. If you set the application name, you see it if you query the sysprocesses table in the master database.
dblogin | dbsetlpwd |
dbopen | dbsetluser |
dbsetlhost |