Solved

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

Posted on 2007-04-10
3
263 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
  • 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now