Send feedback on this topic.
Teradata.Client.Provider
MaxDecimalPrecision Property



Teradata.Client.Provider Namespace > TdConnectionStringBuilder Class : MaxDecimalPrecision Property
Used to set the maximum precision of a decimal that can be retrieved from Teradata.
Syntax
'Declaration
 
Public Property MaxDecimalPrecision As Byte
'Usage
 
Dim instance As TdConnectionStringBuilder
Dim value As Byte
 
instance.MaxDecimalPrecision = value
 
value = instance.MaxDecimalPrecision
public byte MaxDecimalPrecision {get; set;}
public:
property byte MaxDecimalPrecision {
   byte get();
   void set (    byte value);
}
Remarks

When this attribute is set by an application, Decimal data that is retrieved from Teradata cannot have a precision greater than the specified value.

Teradata V2R6.2 and above support decimal precision up to 38. Versions below V2R6.2 only can support a precision up to 18.

When a connection is going to be made to a V2R6.2 or above version of Teradata the MaxDecimalPrecision can be set to any value between 18 and 38.

When a connection is made to a a version that is below V2R6.2, the MaxDecimalPrecision is ignored. In this situation, the maximum precision of Decimal data that is retrieved is 18.

Default Value: 38

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdConnectionStringBuilder Class
TdConnectionStringBuilder Members