c# - Correlating SQL Profiler trace with code that caused query -
i'm using sql profiler trace behaviour of application seems creating more transactions needs. problem is, it's quite hard correlate particular line in the trace c# code caused - there established way this? there way c# code insert 'markers' sql trace can follow story bit more easily?
add app=yourappname
connection string follow , in sql profiler filter data based on application name
<add name="connectionstring" providername="system.data.sqlclient" connectionstring="data source=server_name;initial catalog=dbname;persist security info=true;user id=user;password=pass;multipleactiveresultsets=true;app=app_name" />
Comments
Post a Comment