How to see the values of a table variable at debug time in T-SQL?
Can we see the values (rows and cells) in a table valued variable in SQL Server Management Studio (SSMS) during debug time? If yes, how? That's not yet implemented according this Microsoft Connect link: Microsoft Connect kirby DECLARE @v XML = (SELECT * FROM <tablename> FOR XML AUTO) Insert the above statement at the point where you want to view the table's contents. The table's contents will be rendered as XML in the locals window, or you can add @v to the watches window. This project https://github.com/FilipDeVos/sp_select has a stored procedure sp_select which allows for selecting from a