gpt4 book ai didi

sql - 在 SQL Server Management Studio 中编辑表后保存更改

转载 作者:行者123 更新时间:2023-12-01 16:22:09 24 4
gpt4 key购买 nike

如果我想保存之前在 SQL Server Management Studio 中保存的表中的任何更改(表中不存在数据),我会收到一条错误消息:

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.

什么会阻止表格被轻易编辑?或者,SQL Server Management Studio 是否需要重新创建表进行编辑?这是什么 - 这个“选项阻止保存更改”

最佳答案

进入工具 -> 选项 -> 设计器 -> 取消选中“防止保存需要重新创建表的更改”。瞧。

发生这种情况是因为有时需要删除并重新创建表才能更改某些内容。这可能需要一段时间,因为必须将所有数据复制到临时表,然后重新插入到新表中。由于 SQL Server 默认情况下不信任您,因此您需要说“好吧,我知道我在做什么,现在让我做我的工作。”

关于sql - 在 SQL Server Management Studio 中编辑表后保存更改,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1969096/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com