Compartilhar via


Propriedade do RDL UserDefinedDataType.NumericScale

Gets or sets the maximum number of digits to the right of the decimal point in a numeric value used in the definition of the user-defined data type.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property NumericScale As Integer 
    Get 
    Set
'Uso
Dim instance As UserDefinedDataType 
Dim value As Integer 

value = instance.NumericScale

instance.NumericScale = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public int NumericScale { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property int NumericScale {
    int get ();
    void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member NumericScale : int with get, set
function get NumericScale () : int 
function set NumericScale (value : int)

Valor da propriedade

Tipo: System.Int32
A Byte value that specifies the numerical scale of the user-defined data type.

Comentários

Numerical scale specifies the number of digits to the right of the decimal point in a number. For example, the number 123.45 has a numerical scale of 2.

Exemplos

Trabalhando com tipos de dados

Consulte também

Referência

UserDefinedDataType Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Tipos de dados (Mecanismo de Banco de Dados)

CREATE TYPE (Transact-SQL)