SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 How to capture procedure values for nested SPs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

denis_the_thief
Aged Yak Warrior

Canada
591 Posts

Posted - 07/29/2013 :  09:59:51  Show Profile  Reply with Quote
Any ideas on how to capture parameter values passed internally for nested stored procedures? Profiler is not capturing the parameters for internal calls.

I realize with this event, we can see the parameter values in profilier: RPC:Completed. But that is only helpful for the outer call, with these events: SP:stmtstarting and SQL:stmtstarting, Profiler will list the nested SP call but will not show me the parameter VALUES (instead I get stuff like Exec SP1 @p1, @p2...)

I suppose I could add a print statement or log statement in every stored proc, but there are so many involved and so many parameters so would be very difficult. Even if there was some way of, inside an sp, to capture the full call including all its parameters?

Thanks.
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000