?
Solved

Extended event 2008 R2 trace a proc

Posted on 2014-03-31
5
Medium Priority
?
56 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 39967922
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
ID: 39968012
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 2000 total points
ID: 39968060
0
 

Accepted Solution

by:
remenard earned 0 total points
ID: 39969492
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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

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.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
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…
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

719 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