Sets the workstation name in the LOGINREC structure.
RETCODE DBSETLHOST ( PLOGINREC loginrec, LPCSTR workstation );
SUCCEED or FAIL.
For DBSETLHOST to have any effect, call it before dbopen.
The workstation name shows up in the sysprocesses table in the master database, or on the screen if you issue an sp_who command.
If you do not call DBSETLHOST, the workstation parameter of the LOGINREC structure is set to the host workstation name by default instead of to NULL, as it is in SQL Server version 6.0 or earlier.
dblogin | dbsetlpwd |
dbopen | dbsetluser |
dbsetlapp |