In your connection string add an "Application Name".
Like so:
<add key="ConnectionString"
value="server=MyServer;Trusted_Connection=true;dat abase=MyDB;Application
Name=MyApp"/>
It will show up in SQL Profiler as "MyApp". Great way to filter in
Profiler.
HTH,
Greg
"Charles Collins" <cj********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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