SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Cascade update
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Bilal123456
Starting Member

1 Posts

Posted - 08/15/2013 :  04:42:27  Show Profile  Reply with Quote
I need to find a list of all relations in my database that do not have an "on update cascade".
Is there a query for that?

SwePeso
Patron Saint of Lost Yaks

Sweden
29910 Posts

Posted - 08/15/2013 :  06:37:57  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Yes.



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

Sweden
29910 Posts

Posted - 08/15/2013 :  06:39:29  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Here is a start.
SELECT	*
FROM	INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS;



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page

djj55
Constraint Violating Yak Guru

USA
283 Posts

Posted - 08/15/2013 :  08:39:26  Show Profile  Reply with Quote
also have a look at sys.foreign_keys

djj
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000