﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Database Deployment Toolkit / Issues  / Foreign Key Cascading Behavior / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Thu, 08 Jan 2009 08:11:47 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Foreign Key Cascading Behavior</title><link>http://forum.strataframe.net/Topic4911-13-1.aspx</link><description>Aha... thanks for the report... I'll change the DatabaseMigrator to do just that when altering foreign keys.  Thanks.</description><pubDate>Mon, 04 Dec 2006 13:45:30 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>Foreign Key Cascading Behavior</title><link>http://forum.strataframe.net/Topic4911-13-1.aspx</link><description>To repro:&lt;/P&gt;&lt;P&gt;Define a FK relationship.&lt;/P&gt;&lt;P&gt;Deploy the database.&lt;/P&gt;&lt;P&gt;Change the cascade behavior of the FK relationship.&lt;/P&gt;&lt;P&gt;Deploy the database. SQL Server complains that you can't Alter--you must drop and recreate with the desired cascade behavior.&lt;/P&gt;&lt;P&gt;Workaround:&lt;/P&gt;&lt;P&gt;Delete the FK relationship in DDT.&lt;/P&gt;&lt;P&gt;Deploy the database.&lt;/P&gt;&lt;P&gt;Create the FK relationship again with the desired cascade behavior.&lt;/P&gt;&lt;P&gt;Deploy the database.&lt;/P&gt;&lt;P&gt;Permanent solution:&lt;/P&gt;&lt;P&gt;DDT should understand that a change in cascade behavior requires the FK to be dropped and recreated and just do that.&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Mon, 04 Dec 2006 10:10:18 GMT</pubDate><dc:creator>Chris Crabtree</dc:creator></item></channel></rss>