I use INFORMATION_SCHEMA.PARAMETERS for getting information about a stored procedure parameter now. I need to know the default values of parameters. Is there a solution for getting the default value of the parameters of a given stored procedure?
I use INFORMATION_SCHEMA.PARAMETERS for getting information about a stored procedure parameter now. I need
Share
Parse the SQL code if you are doing it via SQL commands…
The information isn’t stored in a system table. From sys.parameters (where you’d expect it), has_default_value and default_value columns, we’re told to parse SQL:
To prove: