您的位置:首页 > 数据库

[MSSQL]将用户表 存储过程 变成系统的

2008-04-01 17:04 183 查看
将用户表变成系统表
exec sp_configure 'allow updates',1 reconfigure with override
UPDATE sysobjects SET status = status | 0x80000000 WHERE [NAME] = '表名称'
exec sp_configure 'allow updates',0 reconfigure with override
还原
exec sp_configure 'allow updates',1 reconfigure with override
UPDATE sysobjects SET status = status & 0x7FFFFFFF WHERE [NAME] = '表名称'
exec sp_configure 'allow updates',0 reconfigure with override
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: