sp_fkeys

Returns primary and foreign key information for the specified table or tables.

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

Syntax

sp_fkeys pktable_name [, pktable_owner]
 [, pktable_qualifier] [, fktable_name] 
 [, fktable_owner] [, fktable_qualifier]

Parameters

Usage

This procedure corresponds to the ODBC function SQLForeignKeys.