An Azure service for ingesting, preparing, and transforming data at scale.
not working after use
SELECT CAST(binary_data AS VARBINARY(MAX)) AS binary_data
FROM YourTable
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I need to move the varbinary data in one of my on Prem SQL data table column
Column(binary_data) which needs to be uploaded to azure blob storage.
We have 2 million rows in the table and every row should create one file in the blob storage for the binary data stored in the column.(binary_data).
I am selecting only one column in the query so that it picks only the binary data.
When i use ADF with integration runtime.
Source as SQL Server
Sink : Azure blob storage --> Binary as the type
I get the error Source does not match the Sink.
If sink is binary then source should also be Binary.
Thanks
Vijay Sawnt
An Azure service for ingesting, preparing, and transforming data at scale.
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
Additional SQL Server features and topics not covered by specific categories
not working after use
SELECT CAST(binary_data AS VARBINARY(MAX)) AS binary_data
FROM YourTable
The source type (SQL VARBINARY) is not being handled as a binary data type in the pipeline. Explicitly casting the column to VARBINARY(MAX) and ensuring the sink is set to Binary should resolve the mismatch.
ADF expects the source and sink types to match when dealing with binary data. While SQL Server stores the VARBINARY type as binary, ADF may not automatically handle it as such during the transformation.
SELECT CAST(binary_data AS VARBINARY(MAX)) AS binary_data
FROM YourTable
Then configure ADF Pipeline like below :
VARBINARY column.VARBINARY column from SQL Server to the Binary format in Azure Blob.If you want each row of binary data to create a separate file in Azure Blob Storage, use a dynamic file naming mechanism in ADF.
In the sink configuration, set the file name dynamically using the row number, a unique identifier (such as a primary key), or a timestamp to ensure each row gets its own file.
concat('output_', toString(rowNumber()), '.bin')