Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return Stored Proc Parameters
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01406967
Message ID:
01406981
Vues:
39
>>>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
>
>Perfect! Thank you!

Glad to help - time to work on something else.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform