SQLServer强制保存

当你把nvarchar(200)改成nvarchar(100)的时候,可能会报错:

Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.

大意是说:

不允许保存修改,您所做的更改要求删除并重新创建以下表。您对无法重新创建的表进行了更改或者启用了“组织保存要求重新创建表的更改”选项。

解决方案如下:

Tools->Options->Designers->Prevent saving changes that require table re-creation(阻止保存要求重新创建表的更改)

去掉前面的勾即可。

原文地址:https://www.cnblogs.com/chenyangsocool/p/7382073.html