Solved

Trace SP hit which is inside another SP using Profiler

Posted on 2013-01-21
3
368 Views
Last Modified: 2013-01-21
I would like trace SP hit which is inside another SP using Profiler. As of now, I get only parent SP hit. How to get sub procedure hits in profiler? Please do assist.
0
Comment
Question by:Easwaran Paramasivam
3 Comments
 
LVL 39

Expert Comment

by:Pratima Pharande
ID: 38804222
0
 
LVL 12

Accepted Solution

by:
NormanMaina earned 250 total points
ID: 38804242
In the New Trace window,go to the Trace tab and select All Events and Show All Columns.

Make sure the following columns are also selected:
SQL:Batchstring - will show the sub procedure executing
SP:StmtStarting  -will show the excecuted query from the sub procedure
0
 
LVL 16

Author Closing Comment

by:Easwaran Paramasivam
ID: 38804271
Thanks.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

822 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