DB2®ConnectionStringBuilder.MapDate Property
Gets or sets the value indicating whether the DATE types
should be reported as a different data type.
- Namespace:
IBM.Data.DB2- Assembly:
IBM.Data.DB2(inIBM.Data.DB2.dll)
Syntax
[Visual Basic]
Public Property MapDate As int
[C#]
public int MapDate {get; set;}
[C++]
public: __property int* get_MapDate();
public: __property void set_MapDate(int*);
[JScript]
public function get MapDate() : int;
public function set MapDate(int);
Property value
An integer (0, 1, or 2)
representing the mapping mode. The MapDate keyword is used to indicate
whether the DATE types should be reported as a different
data type.
Set the MapDate keyword as follows:
- 0 - No mapping is performed. Report
DATEasDATE. (Default) - 1 - Report
DATEasSQL_CHAR. - 2 - Report
DATEasSQL_WCHAR.
Note: If MapDate is set to 1 or 2, then the
ODBCVER keyword
is ignored for TIMESTAMP columns.