Condividi tramite


Proprietà NumericRoundAbortEnabled

Ottiene o imposta un valore della proprietà booleana che specifica se l'opzione di database NUMERIC_ROUNDABORT è attiva.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property NumericRoundAbortEnabled As Boolean
    Get
    Set
'Utilizzo
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)

Valore proprietà

Tipo: System. . :: . .Boolean
Valore Boolean che specifica se viene generato un messaggio di errore quando si verifica una perdita di precisione in seguito all'arrotondamento di un'espressione. Se True, viene generato un errore e non viene restituito alcun risultato. Se False (impostazione predefinita), viene generato un avviso e viene restituito un valore NULL.

Implementa

IDatabaseOptions. . :: . .NumericRoundAbortEnabled

Osservazioni

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