<@U04S8PLJWMT> when syncing sql server to snowflak...
# ask-ai
f
@kapa.ai when syncing sql server to snowflake, the source varbinary column type is syncing as varchar. It should sync as binary. How do we take care of this?
k
When syncing from SQL Server to Snowflake using Airbyte, the current behavior is that the SQL Server varbinary column type is mapped to a string (varchar) in the destination, rather than to a binary type as you would expect. This is confirmed by the official data type mapping documentation for the MSSQL source, which shows that both binary and varbinary types are mapped to string in Airbyte: >
varbinary
→ string >
binary
→ string > [See: Microsoft SQL Server (MSSQL) Data type mapping](https://docs.airbyte.com/integrations/sources/mssql#data-type-mapping) There is no indication in the provided knowledge sources that Airbyte currently supports mapping SQL Server varbinary columns directly to Snowflake's binary type. This limitation is consistent with other user reports and documentation, which suggest that unsupported or unlisted types are coerced into strings. Workarounds: - You may need to perform a post-sync transformation in Snowflake to cast or convert the varchar column back to binary, if possible. - Alternatively, you could raise a feature request or upvote existing issues in the Airbyte repository to support direct varbinary-to-binary mapping. At this time, there is no built-in way in Airbyte to change this mapping behavior for varbinary columns from SQL Server to Snowflake. If this is a critical requirement, you may want to follow or contribute to related feature requests in the Airbyte community. If you need further assistance or want to track progress on this feature, consider reaching out on the Airbyte forums or GitHub issues. Summary: Currently, Airbyte maps SQL Server varbinary columns to string (varchar) in Snowflake, not binary. There is no supported configuration to change this mapping as of now, and a post-sync transformation is required to convert the data type in Snowflake if needed. [Microsoft SQL Server (MSSQL) Data type mapping](https://docs.airbyte.com/integrations/sources/mssql#data-type-mapping)