UserDefinedDataType.NumericPrecision 속성
Gets or sets the maximum number of digits in a numeric value used in the definition of the user-defined data type.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property NumericPrecision As Integer
Get
Set
‘사용 방법
Dim instance As UserDefinedDataType
Dim value As Integer
value = instance.NumericPrecision
instance.NumericPrecision = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public int NumericPrecision { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
property int NumericPrecision {
int get ();
void set (int value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
member NumericPrecision : int with get, set
function get NumericPrecision () : int
function set NumericPrecision (value : int)
속성 값
유형: System.Int32
A Byte value that specifies the numerical precision of the user-defined data type.
주의
Numerical precision specifies the number of digits in a number. For example, the number 123.45 has a numerical precision of 5.
The numerical precision cannot be set to a value greater than the MaxLength property value.
예
참고 항목
참조
Microsoft.SqlServer.Management.Smo 네임스페이스