Configuration Object
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The Configuration object represents Microsoft SQL Server engine-configurable parameters and values.
주의
With the Configuration object, you can:
Get current SQL Server configuration options.
Reset one or more SQL Server configuration options.
The ShowAdvancedOptions property of the Configuration object controls the membership of the ConfigValues collection. Each ConfigValue object in the collection represents a specific SQL Server configuration option. For more information about advanced options, see 서버 구성 옵션 설정.
Some SQL Server configuration options do not take effect until the SQL Server service has been stopped and restarted. You can force the server to immediately accept changes in some options using the ReconfigureWithOverride method.
To set a configuration option
Get the Configuration object from a connected SQLServer object.
Get the ConfigValue object of the required configuration option from the ConfigValues collection of the Configuration object.
Set the CurrentValue property of the ConfigValue object to reflect the required change.
Use either the ReconfigureCurrentValues or the ReconfigureWithOverride method of the Configuration object to apply the change to an instance of SQL Server.
If necessary, use the Shutdown and Start methods of the SQLServer object to restart the server with the changed configuration options.