Get Parameter List from StoreProcedure or Function in SqlServer 2005

–get all storeprocedure and function

SELECT * FROM INFORMATION_SCHEMA.PARAMETERS

–pass storeprocedure name or function name

–get the relavent columns ParameterName,DataType,Length,ParameterType

SELECT Parameter_name as ParameterName,Data_type as DataType,coalesce(Character_Maximum_Length,0) as Length,Parameter_Mode as ParameterType FROM INFORMATION_SCHEMA.PARAMETERS

WHERE SPECIFIC_NAME=‘sp_InsertOrder’

3 responses to “Get Parameter List from StoreProcedure or Function in SqlServer 2005”

  1. thanks..

  2. Good collection

    see this blogs. I liked this blog, it has lots of
    nice articles

  3. This is goooooooooooooood…………

Leave a reply to Manoj Savalia Cancel reply