Just to clarifyhow to solvethis in SQL Server 2005....To carry on from what theDamian said.....
If you in diagram view on you Database. Right click the table that is being referenced by the foreign key and click References, then clickon the reference which is testing your patience. Then all you have to do in the (GENERAL) tab is switch the "Check Existing Data On Creation Or Re-Enabling" to NO.....Then BANG!!!!!
No more probs :-)
Enjoy.
建立外键时候,Check Existing Data On Creation Or Re-Enabling设置成no
放弃已有数据,只为将来的数据建立外键。
本文介绍了解决SQL Server 2005中外键约束导致的问题的方法。通过调整CheckExistingDataOnCreationOrRe-Enabling选项为No,可以避免因现有数据导致的外键创建失败。
4449

被折叠的 条评论
为什么被折叠?



