Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

Aged Yak Warrior

596 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?

  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000