共用方式為


NumericRoundAbortEnabled 屬性

取得或設定布林屬性值,這個值會指定 NUMERIC_ROUNDABORT 資料庫選項是否作用中。

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property NumericRoundAbortEnabled As Boolean
    Get
    Set
'用途
Dim instance As Database
Dim value As Boolean

value = instance.NumericRoundAbortEnabled

instance.NumericRoundAbortEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public bool NumericRoundAbortEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
virtual property bool NumericRoundAbortEnabled {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
abstract NumericRoundAbortEnabled : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
override NumericRoundAbortEnabled : bool with get, set
final function get NumericRoundAbortEnabled () : boolean
final function set NumericRoundAbortEnabled (value : boolean)

屬性值

型別:System. . :: . .Boolean
Boolean 值,指定是否因為運算式中的捨入造成錯誤而遺失有效位數。如果為 True,就會產生錯誤而且不會傳回任何結果。如果為 False (預設值),則會產生警告並且傳回 NULL。

實作

IDatabaseOptions. . :: . .NumericRoundAbortEnabled

備註

This option can also be changed by using the Transact-SQL ALTER DATABASE statement.