++的博客

你看不见我,你看不见我。。
随笔 - 22, 文章 - 0, 评论 - 2, 引用 - 0
数据加载中……

MSSQL2000 中, 将用户表 存储过程 变成系统表 存储过程

将用户表变成系统表

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


MSSQL2005无效

posted on 2008-04-09 17:23 Jerry.Wang 阅读(298) 评论(0)  编辑 收藏 引用 所属分类: 开发