What is the TRACE to see all the sql statements run

  • Hi,

    What is the TRACE to see all the sql statements sent by the client?

    Thanks,

    TNV

  • you can use profiler to trace the queries being run and you can also get it to generate a script to enable tracing.

  • - Start Profiler

    - File Menu / New Trace

    - 'Events Selection' Tab

    ---- Uncheck all except Stored Procedures RPC: Completed (and maybe TSQL:SQLBatchCompleted )

    ---- Check 'Show all columns'

    ---- Ensure 'Text Data' column is checked

    ---- Click 'Column Filters...' button

    --------Poke the client name into LIKE field of LoginName or NTUserName (depending on security model) then click OK

    -- Back on the 'Trace Properties' page click 'Run' button

    -MarkO

    "You do not really understand something until you can explain it to your grandmother" - Albert Einstein

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply