Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Questa funzionalità verrà rimossa in una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.
The ReconfigureCurrentValues method applies changes to configuration options made by changing the properties of the ConfigValue objects contained in the Configuration object's ConfigValues collection.
Sintassi
object
.ReconfigureCurrentValues(
)
Parts
- object
Expression that evaluates to an object in the Applies To list.
Prototype (C/C++)
HRESULT ReconfigureCurrentValues();
Osservazioni
When using the ReconfigureCurrentValues method, Microsoft SQL Server tests configuration option settings as they are applied. Some configuration options have only a single setting that passes a validity check, and the ReconfigureCurrentValues method fails when attempting to apply a change to the option. Use the ReconfigureWithOverride method to disable validity checking for options.
Importante: |
|---|
| Some configuration option changes applied by setting ConfigValue object properties and using the ReconfigureCurrentValues 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 ReconfigureCurrentValues, then stop and start the SQL Server service. |
Setting configuration options by using the ConfigValue object and ReconfigureCurrentValues method requires appropriate permission. The SQL Server login used for SQLServer object connection must be a member of the fixed server role sysadmin.
Importante: