Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell if FK relations are set to be enforced
Message
De
28/01/2004 13:38:51
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Divers
Thread ID:
00871437
Message ID:
00871522
Vues:
19
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform