Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 60
  • Last Modified:

Extended event 2008 R2 trace a proc

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
remenard
Asked:
remenard
  • 2
  • 2
2 Solutions
 
QPRCommented:
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
 
remenardAuthor Commented:
Are you thinking profiler, under extended events I think it is Sql_text., text data is profiler. Thanks
0
 
QPRCommented:
0
 
remenardAuthor Commented:
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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now