加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

SqlServer2008修改表时出现“save changes is not permitted…”

发布时间:2020-12-12 15:19:29 所属栏目:MsSql教程 来源:网络整理
导读:最近使用SqlServer2008,发现在修改完表字段名或是类型后点击保存时会弹出一个对话框,对话框内容大致如下 Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made

最近使用SqlServer2008,发现在修改完表字段名或是类型后点击保存时会弹出一个对话框,对话框内容大致如下

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

如下图:

2010-06-03_094326

如果点击 Save Text File ,会保存一个文本文件,感觉没什么作用,内容如下图:

2010-06-03_095158

点击 Cancel 后会弹出另一个对话框,如下图:

2010-06-03_095243

点击OK就关闭了对话框,当然我们的修改肯定也没有保存上。

解决方法

打开工具-选项,如下图:

2010-06-03_100942

在选项对话框中选择:Designers—Table and DataBase Designers ,将右边的Prevent saving changes that require table re-creation 前的勾选去掉,如下图:

2010-06-03_101349

点击OK后,表的结构就可以随意修改保存了

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读