Solved

How to get SQl Profiler so show me subprocedure calls as well

Posted on 2007-04-10
3
295 Views
Last Modified: 2010-05-18
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
0
Comment
Question by:Samm1502
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Ved Prakash Agrawal earned 500 total points
ID: 18881448
there are some event which can give you complete control to view each event which occur within your database.
sp:starting
sp:Complete
RPC:Starting
RPC:Complete
SQL:StatementStarting
SQL:StatementComplete..

0
 

Author Comment

by:Samm1502
ID: 18881628
Thanks that's great - I can ow see my store dprocedure calls but the duration box is empty.  I only get a
durtaion for the BatchCompleted event.  Is there any way to see how long each stored procedure took to run?

Thanks
Sam
0
 
LVL 11

Expert Comment

by:Ved Prakash Agrawal
ID: 18916703
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.:)



0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question