Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » System FunctionsRSS Feeds

APP_NAME Function

Posted By: Sarita Patel     Category: SQL Server     Views: 3382

This article explains about APP_NAME function in sql server with examples.

APP_NAME returns the application name for the current session if set by the application.


Syntax of APP_NAME Function :

APP_NAME()

Return type of APP_NAME() is a nvarchar(128).




Examples of APP_NAME() Function :

Example 1 : Use of APP_NAME() function in select clause 

SELECT APP_NAME()

Output
Microsoft SQL Server Management Studio - Query

Above example returns application name for the current session.
  
Share: 

 
 
 

Didn't find what you were looking for? Find more on APP_NAME Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of APP_NAME Function is from United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!