--启用对系统目录的特殊更新
USE master
sp_configure 'allow updates',1
GO
RECONFIGURE WITH OVERRIDE
GO
use hyys
select * from sysobjects where xtype='U'
update sysobjects
set name=lower(name)
where xtype='U'
select * from syscolumns where id>10000
update syscolumns
set name=lower(name)
where id>10000
--禁用对系统目录的特殊更新
USE master
GO
sp_configure 'allow updates', 0
GO
RECONFIGURE WITH OVERRIDE
GO
博客展示了在SQL Server中对系统目录进行特殊更新的操作。先启用特殊更新,将数据库中表名和列名转换为小写,最后禁用特殊更新。代码使用了SQL语句和GO命令。
1143

被折叠的 条评论
为什么被折叠?



