Created
December 25, 2024 10:52
-
-
Save muhdkhokhar/13a86a37a22ce051935d8b2231e98012 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
p.name AS ParameterName, | |
t.name AS DataType, | |
p.max_length AS MaxLength, | |
p.precision AS Precision, | |
p.scale AS Scale, | |
p.is_output AS IsOutputParameter, | |
CASE | |
WHEN p.is_nullable = 1 THEN 'Optional' | |
ELSE 'Mandatory' | |
END AS ParameterRequirement | |
FROM | |
sys.parameters p | |
INNER JOIN | |
sys.types t ON p.user_type_id = t.user_type_id | |
WHERE | |
p.object_id = OBJECT_ID('YourStoredProcedureName'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment