Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Setting the application name - Ease to monitor the application performance
WhatsApp
Venkatesan Jayakantham
15y
3.8
k
0
0
25
Blog
Sometimes, we used to monitor the performance of our application. In that case, I have seen the application name is generic. For instance, If we use 2 dotnet application to access the database both were showing the application name as ".Net SQLClient Data provider". Oops, Is there any way to segregate this?
Yes, its possible. We can specify the application name in the connection string. You profiler or activity monitor will provide you the application name as the name specified in your connection string.
Generic connection string (Windows authentication):
Data Source=ServerName; Initial Catalog=DatabaseName; Integrated Security=SSPI; Application Name=MyAppName;
Generic connection string (Windows authentication):
Data Source=ServerName; Initial Catalog=DatabaseName;
Persist Security Info=True;User ID=venkat;Password=venkat;Application Name=MyAppName;
Cheers,
Venkatesan Prabu .J
http://venkattechnicalblog.blogspot.com/
Setting the application name - Ease to monitor the application performance
People also reading
Membership not found