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. URVISH SUTHAR Avatar
    URVISH SUTHAR

    thanks..

  2. kulveer Avatar
    kulveer

    Good collection

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

  3. Manoj Savalia Avatar

    This is goooooooooooooood…………

Leave a Reply

Discover more from The Engineering Behind Enterprise AI

Subscribe now to keep reading and get access to the full archive.

Continue reading