How can I export the content of a stored procedure using a SQL Statement?
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.
If by ‘Content’ you are talking about the code, look into sp_helptext()
http://msdn.microsoft.com/en-us/library/ms176112.aspx
Here’s a sample based on the old PUBS sample database
And here are the results
BUT, if by ‘Content’ you mean the results; you can either run the proc with the ‘Results to File…’ setting, or ‘Results in Grid’ and right click in the grid, and do a ‘Save as…’