sp_help is a system stored procedure in sql server which is used to find the structure of the database objects.
syntax for sp_help is :
sp_help < database object Name>
Example : sp_help will retun all the following information in case tables:
In case of stored procedures sp_help will return the following information:
syntax for sp_help is :
sp_help < database object Name>
Example : sp_help will retun all the following information in case tables:
- Table Name , database owner and table created time.
- columns and their corresponding data types
- Identity column if any
- constraints like primary key etc if any.
In case of stored procedures sp_help will return the following information:
- Stored procedure , database object owner and procedure created time
- Input and output parameters used in stored procedure if any.