Sets the workstation name in the SQL Server login record.
SqlSetLHost% ( loginrec%, workstation$ )
where
SUCCEED (1) or FAIL (0).
For SqlSetLHost% to have any effect, it must be called before SqlOpen%. SqlSetLHost% is optional. If SqlSetLHost% is not called, the workstation name is set to an empty string.
SQL Server uses the workstation name in its sysprocesses table and when you issue an sp_who procedure to identify your connection. You see the workstation name when you query the sysprocesses table in the master database.
SqlLogin%, SqlOpen%, SqlSetLApp%, SqlSetLPwd%, SqlSetLUser%