Retreiving metadata

sp_help Display all objects, the owner of the object and object type sp_help object ‘[store procedure name|table name|view name]’ Displays code for store procedures, column(s) in a table/view sp_helpdb Display all databases, it’s size, owner, dbid, created and status and compatibility level sp_helpindex ‘table name’ Display indexes on a table, index description (clustered, non-clustered), columns…