MS SQL2012修改数据表字段排序

本文介绍了解决SQL Server 2012中修改字段顺序时出现的保存问题的方法,通过调整SSMS的设置即可实现字段顺序的更改。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

当在SQL2012中修改表中字段的顺序,保存时提示:

Saving changes is not permitted. The changes that you have made require the following tables to be dropped and re-created.

更改设置:

1、Open SQL Server 2008 Management Studio (SSMS)

2、Click Tools menu and then click on Options

3、Expand Designers node and select Table and Database Designers option

4、You need to uncheck “Prevent saving changes that require the table re-creation” option and click OK to save changes

 

以上 “Prevent saving changes that require the table re-creation” option是默认勾选的,在修改保存数据表后最好将该项勾选。

另外,在Insert数据表时最好将字段名写上,这样就避免因为顺序的调整,要修改代码

 

以上内容参考 http://www.sql-server-performance.com/2009/saving-changes-not-permitted/

仅作学习用途

转载于:https://www.cnblogs.com/wftrustself/p/3309128.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值