Passing the ApplicationName to SQL Profiler / C2 Auditing
Posted on 2006-11-10
In a trace file, there is an "application name" field. It displays "Query Analyzer", "SQL EM", or "Visual Basic", ".Net SQLClient Provider", etc.
We have applications that use Visual Basic 6.0 and ASP.NET. I'm trying to figure out how to pass a name we decide on ("Application X") to the Trace/Audit file so that it shows up in the Application Name Field through both of them.