Database 版 (精华区)
发信人: wyy.bbs@bbs.whnet.edu.cn (六六大顺), 信区: cndatabase
标 题: 如何修改MS SQL SERVER 中的系统表
发信站: 武汉白云黄鹤站 (Mon Feb 23 07:29:44 1998)
转信站: Lilac!ustcnews!whbbs
由于莫名其妙的原因,致使MS SQL SERVER中出现
乐三个垃圾表。打开系统表,发现关于垃圾表的
记录已经不完整。sysobjects,sysindex,syscolumns
三个表都有这些表的ID记录,但独独sysprotects缺少
乐相关表的ID记录。
无奈之下,尝试删除系统表的垃圾表记录,如下:
DELETE FROM sysobjects WHERE name = 'TEMP2'
AND id = 1280723615 AND uid = 1 AND type = 'U'
AND userstat = 0 AND sysstat = 195 AND indexdel = 0
AND schema_ver = 0 AND version = 0 AND deltrig = 0
AND instrig = 0 AND updtrig = 0
AND seltrig = 0 AND category = 0 AND cache = 0
但系统显然不会允许你轻松删除修改记录,错误如下:
Ad-hoc updates to system catalogs not enabled.
System Administrator must reconfigure system to
allow this.
No changes made to database.
--
※ 来源:·武汉白云黄鹤站 s1000e.whnet.edu.cn·[FROM: yky-20.wript.ed]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:3.297毫秒