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
I just simply put in select statements into my script and it displays it to the results window..
select * from @VarTable;
now as I step thru my code and hit the select it will display the values. Then I either comment them out when done testing or set a Testing flag.
Hope this helps