How can you test an existing stored procedure in Microsoft Sql Server Management Studio?
How can you test an existing stored procedure in Microsoft Sql Server Management Studio?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not sure of best approach here is how I do it:
You can right click the sp > tasks > execute to > new query window. This will allow you to call the SP with parameters.
You can then do selects at various points in the SP for debugging.
The other way if it is a really complex SP is to take the code out of an SP and just declare variables in place of the parameters then you can just run the TSQL code directly.
Would love to hear any better ways though.