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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -