Getting Information About Tables

There are several system procedures you can use to obtain information about tables.

  • sp_help displays information about tables, listing any attributes (such as cache bindings) assigned to the specified table and its indexes, giving the attribute’s class, name, integer value, character value, and comments.

  • sp_depends displays information about the views, triggers, and procedures in the database that depend on a table.

  • sp_helpindex reports information about the indexes created on a table.

  • sp_helpartition reports information about the table’s partition properties.