sp_special_columns

Retrieves the information about columns within a specified table or view.

  • The optimal set of columns that uniquely identifies a row in the table or view

  • The columns that are automatically updated when any value in the row is updated by a transaction

Syntax

sp_special_columns table_name [, table_owner]
 [, table_qualifier] [, col_type]

Parameters

Usage

  • This procedure corresponds to the ODBC function SQLSpecialColumns.

See ODBC Datatypes for matching ODBC integer identifiers returned in the TYPE_NAME and DATA_TYPE columns of the result set.