2

If I have a stored procedure containing input and output parameters, is it possible to access this information some how? What I would like is a list identifying the parameters and whether they are input or output.

1
  • 1
    I just "discovered" sp_sproc_columns. Seems like it might be used. Commented Oct 11, 2011 at 7:36

2 Answers 2

4
SELECT name, 
       is_output
FROM sys.parameters
WHERE object_id=object_id('dbo.YourProc')
Sign up to request clarification or add additional context in comments.

1 Comment

Thank you Martin. Your answer let me to the sp_sproc_columns SP which provided the information I required.
0

sys.parameters is a table containing such information (e.g. the is_output column)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.