Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SqlCeParameter.Precision Property

Gets or sets the maximum number of digits used to represent the Value property.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

public byte Precision { get; set; }

Property Value

Type: System.Byte
The maximum number of digits used to represent the Value property. The default value is 0.

The Precision property is only used for decimal and numeric input parameters.

The following example creates a SqlCeParameter and sets the Precision property.

SqlCeParameter param = new SqlCeParameter("@Price", SqlDbType.Decimal);
param.Value = 3.1416;
param.Precision = 8;
param.Scale = 4;


Show:
© 2015 Microsoft