Using SET NULL and SET DEFAULT with Foreign Key Constraints

Posted on SQL Team See other posts from SQL Team
Published on Tue, 12 Aug 2008 00:00:00 GMT Indexed on 2010/03/11 4:41 UTC
Read the original article Hit count: 364

Filed under:
Cascading Updates and Deletes, introduced with SQL Server 2000, were such an important, crucial feature that it is hard to imagine providing referential integrity without them. One of the new features in SQL Server 2005 that hasn't gotten a lot of press from what I've read is the new options for the ON DELETE and ON UPDATE clauses: SET NULL and SET DEFAULT. Let's take a look!

© SQL Team or respective owner