水滴石穿

渴望成为高手--Amy.Qiu
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

sp_configure

Posted on 2008-07-03 11:47  AmyQiu  阅读(1370)  评论(2编辑  收藏  举报
sp_configure 'xp_cmdshell',1 RECONFIGURE

在设置选项并发出 
RECONFIGURE(在某些情况下 RECONFIGURE WITH OVERRIDE)语句之后立即生效。

若要用 sp_configure 配置高级选项,必须首先在将 show advanced options 选项设置为 
1 的情况下运行 sp_configure,然后运行 RECONFIGURE: 

sp_configure 
'show advanced options'1
GO
RECONFIGURE
GO
sp_configure 
'cursor threshold'0
GO
RECONFIGURE
GO