Import CSV with invalid header name into Sql Database using Azure Data Factory

Carlos Montoro 21 Reputation points
2020-11-24T18:12:06.707+00:00

I need to import a CSV file that has a reserved word as column name

column name examples: date, day

Azure SQL Database
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,726 questions
0 comments No comments
{count} votes

Accepted answer
  1. Saurabh Sharma 23,761 Reputation points Microsoft Employee
    2020-11-25T01:11:03.263+00:00

    @Carlos Montoro Thanks for posting your question on Microsoft Q&A.
    Import csv file having reserved words to Azure SQL Database can be done by using "Copy Data activity" by making "Auto Create table" as enabled at Sink tab. Also, you need to make sure that you provide a table name in your Sink Dataset by using "Edit" checkbox. You can refer to the below pipeline I have created which imports csv with column names (day and year) from blob storage to Azure SQL DB.
    Sample CSV file
    42305-image.png

    Pipeline
    42280-load-csv-adf.gif
    Please let me know if you have any other questions.

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful