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