修改系统表可以做到不提倡这样做
例子如下
---配置改为可以修改系统表
exec sp_configure 'allow updates',1
RECONFIGURE WITH OVERRIDE
---- 更新列顺序
update syscolumns set colid=新顺序(改为表总列数+1)
where id=object_id(N'a') and colid=需要修改的列顺序
-------配置改为不可以修改系统表
exec sp_configure 'allow updates',0
RECONFIGURE WITH OVERRIDE
go
例子如下
---配置改为可以修改系统表
exec sp_configure 'allow updates',1
RECONFIGURE WITH OVERRIDE
---- 更新列顺序
update syscolumns set colid=新顺序(改为表总列数+1)
where id=object_id(N'a') and colid=需要修改的列顺序
-------配置改为不可以修改系统表
exec sp_configure 'allow updates',0
RECONFIGURE WITH OVERRIDE
go
where id=object_id(N'a') and colid=1
请问在哪里进行调整?小弟没找到:)