>Is there a simple approach of debugging a stored procedure? When I am running an ASP.NET app I want to see if certain IF conditions were met and the code after the IF was executed. One simple way I am thinking is if I can create some kind of token or semaphore file that I can look at (after the procedure) is done? How do you do it?
You can debug a stored procedure from SSMS by opening a new query window and entering the command to execute the stored procedure (ie.. EXEC myProc myparameter1, myparameter2..)
Instead of executing the command directly, open the Debug menu (on the menu at the top) and click on Debug. It will step you into the procedure.
____________________________________
Don't Tread on Me
Overthrow the federal government NOW!
____________________________________