ADO.NET data types

This table details the mapping between Vertica data types and .NET and ADO.NET data types.

This table details the mapping between Vertica data types and .NET and ADO.NET data types.

.NET Framework Type ADO.NET DbType VerticaType Vertica Data Type VerticaDataReader getter
Boolean Boolean Bit Boolean GetBoolean()
byte[] Binary

Binary

VarBinary

LongVarBinary

Binary

VarBinary

LongVarBinary

GetBytes()

Datetime DateTime

Date

Time

TimeStamp

Date

Time

TimeStamp

GetDateTime()

DateTimeOffset DateTimeOffset

TimestampTZ

TimeTZ

TimestampTZ

TimeTZ

GetDateTimeOffset()

Decimal Decimal Numeric Numeric GetDecimal()
Double Double Double

Double

Precision

GetDouble()

Int64 Int64 BigInt Integer GetInt64()
TimeSpan Object 13 Interval Types 13 Interval Types

GetInterval()

String String

Varchar

LongVarChar

Varchar

LongVarChar

GetString()
String StringFixedLengt Char Char GetString()
Guid Guid UUID (see note below) UUID GetGuid()
Object Object N/A N/A GetValue()

UUID backwards compatibility

Vertica version 9.0.0 introduced the UUID data type, including JDBC support for UUIDs. The Vertica ADO.NET, ODBC, and OLE DB clients added full support for UUIDs in version 9.0.1. Vertica maintains backwards compatibility with older supported client driver versions that do not support the UUID data type, as follows:

When an older client... Vertica...
Queries tables with UUID columns Translates the native UUID values to CHAR values.
Inserts data into a UUID column Converts the CHAR value sent by the client into a native UUID value.
Queries a UUID column's metadata Reports its data type as CHAR.