伯乐共勉

讨论。NET专区
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

在SQL SERVER中提升自己的表为系统表,防止误操作

Posted on 2005-05-10 14:15  伯乐共勉  阅读(661)  评论(1编辑  收藏  举报
create table qiubole(did int)

sp_configure  'allow updates', 1

RECONFIGURE WITH OVERRIDE

update sysobjects set xtype = 'S',info = 4
 where id = object_id('qiubole')

sp_configure  'allow updates', 0

RECONFIGURE WITH OVERRIDE