Openflow connectors for SQL Server: Data mapping

Note

This connector is subject to the Snowflake Connector Terms.

This topic describes how SQL Server data types are mapped to Snowflake data types. The mapping is the same for the Openflow Connector for SQL Server and the Openflow Connector for SQL Server (CDC).

SQL Server to Snowflake data type mapping

The following table shows how SQL Server data types are mapped to Snowflake data types when replicating data.

SQL Server typeSnowflake typeNotes
TINYINTINT
SMALLINTINT
INTINT
BIGINTINT
DECIMALNUMBERIf precision exceeds Snowflake limitations (precision > 38), the value is stored as TEXT.
NUMERICNUMBERIf precision exceeds Snowflake limitations (precision > 38), the value is stored as TEXT.
SMALLMONEYNUMBER
MONEYNUMBER
REALFLOAT
FLOATFLOAT
BITBOOLEAN
CHARTEXT
VARCHARTEXTSupported by default up to 16 MB.
NCHARTEXT
NVARCHARTEXTSupported by default up to 16 MB.
TEXTTEXTSupported by default up to 16 MB.
NTEXTTEXTSupported by default up to 16 MB.
DATEDATE
TIMETIME
SMALLDATETIMETIMESTAMP_NTZ
DATETIMETIMESTAMP_NTZ
DATETIME2TIMESTAMP_NTZ
DATETIMEOFFSETTIMESTAMP_TZ
BINARYBINARY
VARBINARYBINARYSupported by default up to 8 MB.
IMAGEBINARYSupported by default up to 8 MB.
JSONVARIANTSupported by default up to 16 MB.
VECTORVARIANTSupported by default up to 16 MB.
XMLTEXTSupported by default up to 16 MB.
UNIQUEIDENTIFIERTEXT
ROWVERSION / TIMESTAMPTEXT
SQL_VARIANTTEXT
GEOGRAPHYTEXTValues of this type are inserted as NULL.
GEOMETRYTEXTValues of this type are inserted as NULL.

Note

For types with default size limits (8 MB / 16 MB) in this table, it is possible to raise these limits. For details of the Openflow Connector for SQL Server (CDC), see Oversized values and for Openflow Connector for SQL Server, see Oversized values.

Note

Any SQL Server data types not listed in this table are mapped to TEXT by default.