Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 List Constraints

Author  Topic 

Ghanta
Yak Posting Veteran

96 Posts

Posted - 2011-07-22 : 13:02:47
I found queries to list all the table names, column names and constraints. Can we also find out which FKs have cascading delete/update property.

Thanks!

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-07-22 : 13:09:02
you can look at delete_referential_action_desc and update_referential_action_desc columns in sys.Foreign_keys catalog view for this info

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Ghanta
Yak Posting Veteran

96 Posts

Posted - 2011-07-22 : 13:10:26
Thanks a lot Vaisakh.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-07-22 : 13:21:05
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -