您的位置:首页 > 其它

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

2004-12-30 13:13 716 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐