﻿<?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</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 19 May 2026 12:03:47 GMT</lastBuildDate><ttl>20</ttl><item><title>Foreign Key Cascading Behavior</title><link>http://forum.strataframe.net/FindPost4911.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 13:45:30 GMT</pubDate><dc:creator>Chris Crabtree</dc:creator></item><item><title>RE: Foreign Key Cascading Behavior</title><link>http://forum.strataframe.net/FindPost4926.aspx</link><description>Aha... thanks for the report... I'll change the DatabaseMigrator to do just that when altering foreign keys.&amp;nbsp; Thanks.</description><pubDate>Mon, 04 Dec 2006 13:45:30 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>