Sets the application name in the LOGINREC structure.
RETCODE DBSETLAPP (
PLOGINREC loginrec,
LPCSTR application );
where
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 not called, the application name is set to NULL.
SQL Server uses the application name in its sysprocesses table to help identify your process. If you set the application name, you will see it if you query the sysprocesses table in the master database.
dblogin, dbopen, DBSETLHOST, DBSETLPWD, DBSETLUSER