Daniel Stackenland
Daniel Stackenland

Reputation: 3239

Change Application Name in Sql Server Profiler

When profiling a .Net Application in SQL Server Profiler the default Application Name is taken from the Data Provider. How can I change this to my own Application Name?

Upvotes: 23

Views: 20206

Answers (1)

Daniel Stackenland
Daniel Stackenland

Reputation: 3239

Just add Application Name=My Application; to the Connectionstring

Example: connectionString="Server=mySqlServer;Initial Catalog=myDatabase;User id=aUser;Password=aPassword;Application Name=My Application;"

You can also use App=My Application

Upvotes: 44

Related Questions