Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I am running SQL profiler to trace the sql queries being executed, the trace is showing only Audit logs, not the sql commands being executed. Can somebody tell me how to get the sql commands also? Thanks

share|improve this question

migrated from Jan 6 '12 at 15:32

This question came from our site for professional and enthusiast programmers.

In the "Events Selection" tab of the trace definition, make sure that the TextData column is checked for RPC:Completed events.

(This is unchecked in the default trace definition)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.