将用户表变成系统表
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

 

http://blog.csdn.net/wangjia184/archive/2005/12/24/560950.aspx

posted on 2007-01-10 16:19  mbskys  阅读(99)  评论(0)    收藏  举报