I would like to debug a complex T-SQL script using SSMS 2012.
I can run the script in debug mode and place breakpoints, as well as step through my script, but I can\'t
Using the next code you can see the content of your table as XML.
DECLARE @v XML = (SELECT * FROM FOR XML AUTO)
It is useful to check what your SELECT statements return. I tested it and it works.
Read more here.