大象怒怒的小脚


没有终了漂泊,于是成了树上的精灵.有梦想,却不会飞翔.用自己短短的羽翼,跳跃在迷离的枝头……

首页 新随笔 联系 订阅 管理
使用sp_configure 系统存储过程
使用 sp_configure 时,必须在设置一个配置选项后运行 RECONFIGURE 或者 RECONFIGURE WITH OVERRIDE。RECONFIGURE WITH OVERRIDE 语句通常保留用于需要加倍小心的配置选项(例如,将 allow updates 选项设置为 1 使用户得以更新系统表中的字段)。但是,RECONFIGURE WITH OVERRIDE 可用于所有的配置选项,并且可以用它代替 RECONFIGURE。

例如:

sp_configure 'allow updates', 1
RECONFIGURE WITH OVERRIDE
update sysproperties
set value ='客户编号'
where smallid=
(
select a.colid
from  syscolumns a
where  a.id=object_id('wuxidb_sanno..tDjyutyu')
       and a.name='FdJdyxCD'
)

posted on 2006-04-17 18:02  大象怒怒  阅读(901)  评论(0编辑  收藏  举报