Welcome to Burgess's blog

本博除非注明,均是原创,您若转载,请指明出处,谢谢配合!

博客园 首页 新随笔 联系 订阅 管理

sp_configure is an useful SP, and we can display or change global configuration settings for the current server with it.

By default, you can't display advanced options when executing sp_configure. To show them, you must set show advanced option to 1 firsrt by executing below script:

USE master
GO
EXEC sp_configure 'show advanced option', '1'
--the default is 0
RECONFIGURE  --reasonable

Executing sp_configure with no parameters displays all configuration options:
EXEC sp_configure

Another instance:
USE master
GO
EXEC sp_configure 'Ad Hoc Distributed Queries',
'1'
RECONFIGURE WITH OVERRIDE  --forced

posted on 2008-09-24 17:00  Burgess  阅读(611)  评论(0编辑  收藏  举报