Solved

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

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL 2012 AOG and SQL2014 AOG 76 58
how to check mis-spellings in a select SQL 2 37
SQL Sum of items in two tables not equal. 5 42
SQL Syntax 6 26
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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
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.

679 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