Sql Server'不容许保存更改'错误►防止保存须要从新建立表的更改

问题:

When I create a table in SQL Server and save it, if I try to edit the table design, like change a column type from int to real, I get this error: 当我在SQL Server中建立一个表并保存它时,若是我尝试编辑表设计,好比将列类型从int更改成real,我会收到如下错误: ui

Saving changes is not permitted. 不容许保存更改。 The change you have made requires the following table to be dropped and re-created. 您所作的更改须要删除并从新建立下表。 You have either made changes to a table that can't be recreated or enabled the option prevent saving changes that require the table to be re-created. 您已对没法从新建立或启用的表进行了更改,该选项会阻止保存须要从新建立表的更改。 this

Why do I have to re-create the table? 为何我要从新建立表? I just want to change a data type from smallint to real . 我只想将数据类型从smallint更改成real spa

The table is empty, and I didn't use it until now. 该表是空的,直到如今我才使用它。 .net


解决方案:

参考一: https://stackoom.com/question/SZhZ/Sql-Server-不容许保存更改-错误-防止保存须要从新建立表的更改
参考二: https://oldbug.net/q/SZhZ/Sql-Server-Saving-changes-is-not-permitted-error-Prevent-saving-changes-that-require-table-re-creation
相关文章
相关标签/搜索