4

In the watch window whilst debugging in Sql Server 2012, we get to see the values of regular variables, we can look at xml in a special window and same with sql strings, but for a table variable it just says (table).

I'd really like to know if there is any way to peek inside that table variable at that moment and check on the contents.

EDIT:

I have discovered that Visual Studio (for a long time now), has had a "Table" visualizer alongside Xml, Html, and Text. This does not help me here, but it underscores the point I made originally that it is a very doable feature. I'm very disappointed in general with the Sql Server SSMS team vs the Visual Studio team. I think Visual Studio developers in Redmond ought to be forced every 5 years to do a "tour of duty" for 2 or 3 sprints on the SSMS team. They could help it sooo much if they did that.

Thank you.

4

2 回答 2

5

不,我很遗憾地报告这在 SQL Server 2012 中仍然不可能。该功能已被请求,收到了很多赞成票,但经过四年的审议后被丢弃:

http://connect.microsoft.com/SQL/feedback/details/363054

于 2012-07-24T22:48:56.280 回答
1

你可以试试这个:select * from @temp_table

于 2014-11-11T05:14:22.150 回答