Write for Us
Now that we have a stored procedure built in SQL Server, or a extended stored procedure added to the master database, we have several ways to return information about that stored procedure to our users or to our code.
Determine the Stored Procedures or Extended Stored Procedures Currently in the Database
Syntax sp_stored_procedures [[@sp_name =] 'name'] [,[@sp_owner =] 'owner'] [,[@sp_qualifier =] 'qualifier']
Determine the ID Number of the Stored Procedure
Determine the Name of a Stored Procedure Given the ID Number
Determine an Object Dependencies
Return Properties, Columns, Parameters and the Text of a Stored Procedure
Syntax sp_sproc_columns [[@procedure_name =] 'name'] [,[@procedure_owner =] 'owner'] [,[@procedure_qualifier =] 'qualifier'] [,[@column_name =] 'column_name'] [,[@ODBCVer =] 'ODBCVer']
We now know how to return information about our stored procedures, let's look at the objects that allow us to change a stored procedure's text and basic options, or change how SQL Server sees the a stored procedure.