[英]Reseed Primary Keys from all tables on a database
I´m trying to reset the identity column of a few tables. 我正在尝试重置一些表的标识列。 The problem is that, these identity columns are used as a foreign keys in other tables, how can i do this? 问题是,这些标识列在其他表中用作外键,我该怎么做?
Remove your table relationships. 删除您的表关系。
And relate the tables again after re creating the identity columns of your tables. 在重新创建表的标识列之后,再次关联表。
Regards 问候
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.