Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

verify if ENFORCE RELATIONSHIPS for constraints is on

Status
Not open for further replies.

dky1e

Programmer
May 4, 2002
293
US
Hi,

I've looked through the BOL and I can't find a view I could use to check if the Relationship option 'Enforce relationship for INSERTs and UPDATEs' is checked for all the tables? (And then list all the tables that do not have the option 'on')

I have a bunch of tables and I don't want to go though them with enterprise manager.

Thanks in advance!
 
FYI:
Alright, I got it.

OBJECTPROPERTY(constid, 'CnstIsNotTrusted')

will return whehter the constraint has no check on or not.
 
err, sorry... it should be 'CnstIsDisabled'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top