CurrentValue Property
后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。
The CurrentValue property specifies a configuration parameter value for a point in time.
语法
object
.CurrentValue [=value]
Parts
- object
An expression that evaluates to an object in the Applies To list
- value
A long integer
Data Type
Long
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetCurrentValue(LPLONG pRetVal);
HRESULT SetCurrentValue(LONG NewValue);
备注
Modify the CurrentValue property to change Microsoft SQL Server configuration parameter values. The MinimumValue and MaximumValue properties provide the range of values acceptable for the CurrentValue property.
Setting the CurrentValue property does not change the value of the configuration parameter. If the DynamicReconfigure property is TRUE, use the ReconfigureCurrentValues or ReconfigureWithOverride method of the Configuration object to apply the change. If DynamicReconfigure is FALSE, the server must be restarted to apply the change.