如何提升自己的表为系统表,防止误操作对其进行修改

来源:互联网 发布:js断点 debug 编辑:程序博客网 时间:2024/05/20 00:13
create table test1(did int)

sp_configure  'allow updates', 1

RECONFIGURE WITH OVERRIDE

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

sp_configure  'allow updates', 0

RECONFIGURE WITH OVERRIDE  
原创粉丝点击