views:

56

answers:

1

Using the SQL Server 2008 debugger, how can I see the contents of a local table-valued variable in a stored procedure? In the locals window its value is listed as "(table)", but I can't see the contents. I saw some references to an "Immediate" window at http://www.sqlservercentral.com/articles/SQL+Server+2008/64354/ (note registration required to see this article) but I couldn't find how to open it.

Any ideas? Thanks!

+1  A: 
anishmarokey
Sorry didn't realise it was register required, I have a cookie on that site. Thanks for the info, but you didn't answer the specific question: how do I get the value of a table variable when debugging a stored procedure. I can do all the bit that you've said so far (albeit in SSMS 2008, your article relates to SQL Server 2005, which is quite different).
Simon D
what you mean by value of table variable ? all the values in a particular column of a table ?
anishmarokey
I want to see what I would see if I type "select * from @tablevariable"
Simon D