SQL Debugging
I just found out that you can debug a stored procedure the same way you can debug .Net code. To use:
- Open VS.Net
- Open Server Explorer (Ctrl+Alt+S)
- Go to the database where the stored procedure is locate
- Right click and choose Step Into Stored Procedure
You can see what is going on there, inspect variables, etc. Very nice, especially compared to doing black box debugging, where you just run the , and try to see what comes out in the end. :-)
It doesn't offer the ability to see what happen inside statements (we've got the Execution Plan for that, apperantly), but just walking through the procedure should be a huge bonus.
I'm still not sure how to take a peek inside tables (especially temp tables), and what the transaction semantics are, but it's looking very cool so far.
Comments
Comment preview