Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Contains information about the FOREIGN KEY constraints that are in the definitions of tables in the database.
Important
This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping System Tables to System Views (Transact-SQL). This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
Column name | Data type | Description |
---|---|---|
constid | int | ID of the FOREIGN KEY constraint. |
fkeyid | int | Object ID of the table with the FOREIGN KEY constraint. |
rkeyid | int | Object ID of the table referenced in the FOREIGN KEY constraint. |
fkey | smallint | ID of the referencing column. |
rkey | smallint | ID of the referenced column. |
keyno | smallint | Position of the column in the reference column list. |
Mapping System Tables to System Views (Transact-SQL)
Compatibility Views (Transact-SQL)
Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today