Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the Application Name of SSMS

Tags:

sql-server

Is it possible to change Application Name that SSMS (Sql server Management Studio) uses when making a connection? We need to alter it so we can distinguish different instances. I believe this is not an option in the settings.

Kind Regards, Tom

like image 489
buckley Avatar asked Mar 08 '12 08:03

buckley


2 Answers

In the connection dialog, go to Options, select the Additional Connection Parameters tab and write:

Application Name=<YOUR APP NAME>
like image 189
Pablo Montilla Avatar answered Sep 30 '22 13:09

Pablo Montilla


As explained by the docs for APP_NAME():

To set an application name in Management Studio, click Options in the Connect to Database Engine dialog box. On the Additional Connection Parameters tab, provide an app attribute in the format ;app='application_name'

However i've only managed to get this to work on a fresh session of management studio, ie. close the program and add the parameter on the first connection to said database.

like image 22
G.Borella Avatar answered Sep 30 '22 15:09

G.Borella