共用方式為


ReconfigureWithOverride Method

未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。

The ReconfigureWithOverride method applies changes to configuration options made by changing the properties of the ConfigValue objects contained in the Configuration object's u collection.

語法

object
.ReconfigureWithOverride(
)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT ReconfigureWithOverride();

備註

Use the ReconfigureWithOverride method to disable option value validity checking when using the ConfigValue object to set Microsoft SQL Server configuration options.

ms131536.note(zh-tw,SQL.90).gif重要事項:
Some configuration option changes applied by setting ConfigValue object properties and using the ReconfigureWithOverride method take effect immediately. Other changes require that the SQL Server service be stopped and restarted. When a change requires service restart, you must first apply the change by using ReconfigureWithOverride, then stop and start the SQL Server service.

Setting configuration options by using the ConfigValue object and ReconfigureWithOverride method requires appropriate permission. The SQL Server login used for SQLServer object connection must be a member of the fixed server role sysadmin.

Applies To:

Configuration Object

請參閱

參考

ConfigValue Object

說明及資訊

取得 SQL Server 2005 協助