DB2®ConnectionStringBuilder.EnsureDefaultDFRM Property

Ensure Default DecFloat Rounding Mode. Gets or sets a value indicating whether the DB2Connection.Open() method will attempt to explicitly set the rounding mode to ROUND_HALF_EVEN.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Property EnsureDefaultDFRM As Boolean
[C#]
public bool EnsureDefaultDFRM {get; set;}
[C++]
public: __property bool* get_EnsureDefaultDFRM();
public: __property void set_EnsureDefaultDFRM();
[JScript]
public function get EnsureDefaultDFRM() : Boolean;
public function set EnsureDefaultDFRM(Boolean);

Property value

When EnsureDefaultDFRM is set to true, the DB2Connection.Open() method will attempt to explicitly set the rounding mode to ROUND_HALF_EVEN. If the database rounding mode is not ROUND_HALF_EVEN, then the Open() call will throw a DB2RoundingModeException but the connection will remain open. The default value of EnsureDefaultDFRM is false.

Data server restrictions

This property applies only to Db2® data servers.