Take the 2-minute tour ×
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. It's 100% free, no registration required.

I am trying to capture all statements/SPs and RPCs (either they finish or fail) on a SQL 2005 server using SQL trace. Are the following events enough?

Exceptions
Stored Procedure
RPC:Completed
RPC:Starting
SP:Recompile
TSQL
SQL:StmtCompleted
SQL:StmtStarting

thanks!

share|improve this question
    
You may also want to capture the SQL:BatchStarting and SQL:BatchCompleted events. –  Thomas Stringer Sep 13 '11 at 0:12

1 Answer 1

up vote 4 down vote accepted

Just use a trace template. Click File, New Trace, and choose the Replay template. That'll get you everything that happens.

share|improve this answer
    
Thanks heaps !! –  Manjot Oct 16 '11 at 21:12

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.