Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if FK relations are set to be enforced
Message
From
28/01/2004 13:38:51
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
00871437
Message ID:
00871522
Views:
20
>exec sp_fkeys @fktable_name=
>
>Returns lots of information, but doesn't seem to include whether the checkboxes for whether or not to enforce the constraints:
>
> "Enforce relationship for INSERTs and UPDATEs"
>
>I don't see this in the SysObjects table. Anyone know how to get this information?
>
>Thanks in advance!
>Mike

you can get this from sp_helpconstraint under the heading status_enabled
include the 'nomsg' parameter, e.g.
exec sp_helpconstraint 'mytable', 'nomsg'
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform