sys.sp_fkeys
spfkeys returns logical foreign key information for the current environment.
What changes
- Input
- Not stated in the Microsoft summary.
- Output or change
- Not stated in the Microsoft summary.
Syntax at a glance
sys.sp_fkeys
[ [ @pktable_name = ] N'pktable_name' ]
[ , [ @pktable_owner = ] N'pktable_owner' ]
[ , [ @pktable_qualifier = ] N'pktable_qualifier' ]
[ , [ @fktable_name = ] N'fktable_name' ]
[ , [ @fktable_owner = ] N'fktable_owner' ]
[ , [ @fktable_qualifier = ] N'fktable_qualifier' ]
[ ; ]
Work example
spfkeys returns logical foreign key information for the current environment.
Read the parameter list and identify the provider operation it supports. Do not call it directly from application T-SQL.
Check your work Why does Microsoft limit direct calls to this procedure?
Open Microsoft Learn for full syntax, permissions, and details for your version.