Solved

Extended event 2008 R2 trace a proc

Posted on 2014-03-31
5
29 Views
Last Modified: 2016-06-04
Hi,
I am trying to setup an extended event to capture when and what parameters a stored procedure is being called with I am close but having trouble on how to filer out all the other procs..  I would like to just capture the one I am interested in.
So far I am having trouble setting up the predicates for it.
I was trying to find a way to filter on the name of the proc but have not been able to make it work.
If any one knows how or if it can be done with 2008r2 that would be great.
Thanks
Bob
0
Comment
Question by:remenard
  • 2
  • 2
5 Comments
 
LVL 29

Expert Comment

by:QPR
Comment Utility
Try this....
Ensure that TextData is included in your columns and then add a filter for that column which looks like...

Like '%Stored procedure name%'
0
 

Author Comment

by:remenard
Comment Utility
Are you thinking profiler, under extended events I think it is Sql_text., text data is profiler. Thanks
0
 
LVL 29

Assisted Solution

by:QPR
QPR earned 500 total points
Comment Utility
0
 

Accepted Solution

by:
remenard earned 0 total points
Comment Utility
Good idea, bummer I am using 2008R2, very limited in set of options.
Wish I was on 2012.
You did give me an idea to try, depending on which package and event I can get the base info I am looking for.
I have to use sqlserver.sql_sp_statement_starting, in this the object id is the true object id of the stored proc in the target database.
if you use sqlserver.sql_statement_starting, the object id is not the id of the proc so filtering on that won't work.
Thanks for your help it gave me the idea to try something a little different angle.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

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.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

762 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

8 Experts available now in Live!

Get 1:1 Help Now