gpt4 book ai didi

sql-server - 更改表中的列顺序时出现问题 (SQL Server 2008)

转载 作者:行者123 更新时间:2023-12-03 02:50:56 26 4
gpt4 key购买 nike

当我尝试更改此列列表时:

Nombre
Imagen
Descripcion
Activo
IdLineaProducto

进入此(IdLineaProducto 是第一个)

IdLineaProducto
Nombre
Imagen
Descripcion
Activo

SQL Server Management Studio 表示不允许保存更改,因为必须删除并重新创建表(西类牙语...)。我可以在 SQL Server 2005 中执行此操作,但不能在 SQL Server 2008 中执行此操作。

在其他情况下也会发生同样的情况,例如尝试将 int 非标识列转换为标识列。为什么会出现这种情况呢?我该如何解决这个问题?也许是一些配置错误的问题? SQL Server 中的一些新功能?

最佳答案

我找到了solution to this problem .

This is by design and can be quickly fixed in Management Studio by unchecking a property. To fix this in Management Studio, go to Tools -> Options then go to the Designer Page and uncheck "Prevent saving changes that require table re-creation".

请注意,它可能有 undesired consequences ,就像丢失与此相关的其他表中的数据一样。

关于sql-server - 更改表中的列顺序时出现问题 (SQL Server 2008),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/930713/

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