How to create a dataset out of .DAT file in ADF?

Dhananjay Singh 0 Reputation points
2023-02-06T20:20:52.4633333+00:00

I have a .DAT file in a FTP server that I need to read and load its data into MS SQL Server using ADF. I am however unable to create a dataset using this .DAT file. I would like to create a dataset having just a single column with all the data of the .DAT file for me to use in the ADF. Please suggest any solutions.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,625 questions
{count} votes

2 answers

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,642 Reputation points Microsoft Employee Moderator
    2023-02-09T06:47:28.22+00:00

    Hi Dhananjay Singh,

    Welcome to Microsoft Q&A forum and thanks for posting your query. As per the documentation, ADF copy activity doesn't support DAT file format.
    User's image

    There is no direct or out of box dataset for DAT Format files. But if you would like to copy the DAT file extension with a Copy activity supported data format to SQL column, what you can do is you can also use the Delimited Text Format dataset and specify the extension of the file as .DAT file.

    User's image

    Once you have created the dataset, you can use the Copy Data activity in your pipeline to copy the data from the .DAT file to your SQL Server.

    Here is an feature request submitted by a different user in Azure feedback forum. Please feel free to up-vote and comment on it to help increase the priority of this feature request: create a new Linked Service connector for DAT Files

    Hope this info helps.


    Please don’t forget to Accept Answer and Up-Vote wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

  2. Olaf Helper 47,436 Reputation points
    2023-02-09T06:58:39.55+00:00

    I have a .DAT file

    .DAT is just a file extention without any further meaning. What's the file format?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.