@Reema DSouza - Thanks for the question and using MS Q&A platform.
To select the right format for your dataset while moving documents from SQL Server to Azure Blob Storage using Azure Data Factory pipeline, you need to know the format of the existing documents in the Blob storage.
The format of the documents in Azure Blob Storage can be one of the following:
- Text format (CSV, TSV, JSON, or Avro)
- Binary format (Parquet, ORC, or binary file)
You can check the format of the existing documents in Azure Blob Storage by looking at the file extension. For example, if the file extension is .csv, then the format is CSV. If the file extension is .parquet, then the format is Parquet.
If the existing documents in the Blob storage show the type as Block Blob, but it doesn't show the format, you can assume that the format is binary.
To match your new documents to the same format as the existing ones, you need to specify the format in the dataset properties of your Azure Data Factory pipeline. You can specify the format under the format
property of the dataset.
Here is an example of how to specify the format as CSV in the dataset properties:
{
"name": "MyBlobStorageDataset",
"properties": {
"structure": [
{
"name": "Column1",
"type": "String"
},
{
"name": "Column2",
"type": "String"
}
],
"published": false,
"type": "AzureBlob",
"linkedServiceName": "MyBlobStorageLinkedService",
"typeProperties": {
"fileName": "*.csv",
"folderPath": "myfolder",
"format": {
"type": "TextFormat",
"columnDelimiter": ",",
"rowDelimiter": "\n",
"quoteChar": "\"",
"escapeChar": "\"",
"nullValue": "\\N",
"encodingName": "UTF-8"
}
},
"availability": {
"frequency": "Day",
"interval": 1
}
}
}
For more details, refer to Supported file formats and compression codecs by copy activity in Azure Data Factory and Azure Synapse pipelines and Copy and transform data in Azure Blob Storage by using Azure Data Factory or Azure Synapse Analytics.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.