sp_pkeys

Returns primary key information for a single table.

Primary keys must be declared through the ANSI integrity constraint mechanism.

Syntax

sp_pkeys table_name [, table_owner]
 [, table_qualifier]

Parameters

Usage

This procedure corresponds to the ODBC function SQLPrimaryKeys.