Welcome to Microsoft Q&A forum and thanks for reaching out here.
As per my understanding you are using polybase and trying to copy data to Synapse SQL pool with staging enabled and if your source data is having empty value, in sink it is loaded as NULL
and you would want to know how to load that column value as empty string instead of Null
. Please correct me if I my understanding is wrong.
To copy the empty string value as is to your Synapse SQL Pool, please enable useTypeDefault
property under sink settings as shown below.
Ref doc: Use PolyBase to load data into Azure Synapse Analytics
Ref doc: USE_TYPE_DEFAULT = { TRUE | FALSE }
Hope this helps. In case if your settings are different than Polybase, please do share a screenshot of your copy activity sink settings.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.