Returning the Application and Host for the Current User Session : APP_NAME « System Functions « SQL Server / T-SQL Tutorial






4>
5> SELECT APP_NAME() as 'Application'
6> GO
Application

------------------------------------------------------------------------------------------------------------------------
--------
SQLCMD


(1 rows affected)








25.1.APP_NAME
25.1.1.Returning the Application and Host for the Current User Session