Samm1502
asked on
How to get SQl Profiler so show me subprocedure calls as well
I am monitoring a stored procedure that makes several subprocedure calls but my trace only gives me details of the duration of the top level procedure and nothing about the statements and subprocedure calls made within it.
Can I setup SQL Profiler to also show me information for the calls within the top level stored procedure as well so that I can see which statement it is hanging on?
Many thanks
Sam
Sam
Can I setup SQL Profiler to also show me information for the calls within the top level stored procedure as well so that I can see which statement it is hanging on?
Many thanks
Sam
Sam
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
RPC:Completed
SP:Completed
SP:StmtCompleted
SQL:StmtCompleted
above event should capture duration for you procedure.
lets Tell me how you are executing your procedure with SQL Server(SQL Analyzer) or any application (ADO.NET)???
may be i can guide you better.:)
SP:Completed
SP:StmtCompleted
SQL:StmtCompleted
above event should capture duration for you procedure.
lets Tell me how you are executing your procedure with SQL Server(SQL Analyzer) or any application (ADO.NET)???
may be i can guide you better.:)
ASKER
durtaion for the BatchCompleted event. Is there any way to see how long each stored procedure took to run?
Thanks
Sam