Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List parameters

Status
Not open for further replies.

BobBob10

Programmer
Apr 24, 2005
57
GB
Hi is there a stored procedure that I can run that will list all the parameters that are associated with that stored proc?
 
Nice one!

Is it possible to filter this just by user stored procedures rather than user and system stored procedures?
 
in a user db it should just return the user procs since there are no system procs in a user db, maybe I am not understanding you correctly

also add an order by ORDINAL_POSITION to get the parameters in the ame order as in the proc

something like this should list you all the procs order by proc name and parameter position

USE Northwind
SELECT SPECIFIC_NAME as ProcName,PARAMETER_NAME,DATA_TYPE,ORDINAL_POSITION,*
FROM INFORMATION_SCHEMA.PARAMETERS
order by SPECIFIC_NAME ,ORDINAL_POSITION

Denis The SQL Menace
SQL blog:
Personal Blog:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top