Returns primary key information for a single table. Primary keys must be declared through the ANSI integrity constraint mechanism.
sp_pkeys table_name [, table_owner] [, table_qualifier]
is the name of the table. Wildcard-character search patterns are not supported.
is the owner of the table. Wildcard-character search patterns are not supported.
is ignored. Leave blank or set to NULL.
This procedure corresponds to the ODBC function SQLPrimaryKeys.