Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

705 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

18 Experts available now in Live!

Get 1:1 Help Now