Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Stored Proc Parameters
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01406967
Message ID:
01406971
Views:
42
>Is it possible to return a list of the parameters for a SQL stored proc\?
>
>I have this
>
>SELECT Name FROM sys.procedures ORDER BY Name
>
>which returns the proc names. Now I want the param names foe a given proc.

Try

SELECT P.Name, syscolumns.Name, systypes.Name, syscolumns.length
FROM syscolumns INNER JOIN systypes ON syscolumns.xtype = systypes.type
INNER JOIN sys.procedures P on SysColumns.ID = P.Object_ID
order by P.Name
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform