C
Charles Collins
Is there a way to set the program name for a connection so that it is a bit
more descriptive than ".Net SqlClient Data Provider"?
Thanks,
Charles
more descriptive than ".Net SqlClient Data Provider"?
Thanks,
Charles
Greg Burns said:In your connection string add an "Application Name".
Like so:
<add key="ConnectionString"
value="server=MyServer;Trusted_Connection=true;database=MyDB;Application
Name=MyApp"/>
It will show up in SQL Profiler as "MyApp". Great way to filter in
Profiler.
HTH,
Greg