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
CHARTEXTSupported by default up to 16 MB.
VARCHARTEXTSupported by default up to 16 MB.
NCHARTEXTSupported by default up to 16 MB.
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
BINARYBINARYSupported by default up to 8 MB.
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.
UNIQUEIDENTIFIERTEXTSupported by default up to 16 MB.
ROWVERSION / TIMESTAMPTEXTSupported by default up to 16 MB.
SQL_VARIANTTEXTSupported by default up to 16 MB.
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.