Load files fromADL Gen2 to SQLMI

BK 6 Reputation points

Hello Everyone,
I have 30 files (.txt) in Azure Storage Explorer and i want to load these 30 files into 30 different tables in a SQL Managed Instance. Can someone please share if there is a link or document?

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

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,311 Reputation points Microsoft Employee

    Hi @BK ,

    Welcome to Microsoft Q&A Platform. Thank you for posting query here.

    You can have your filename and table name mapping defined in some config table and then lookup that table using Lookup activity. use ForEach activity to iterate over that lookup data and inside ForEach activity use Copy activity

    Your datasets inside Copy activity(source dataset & sink dataset) should be parameterized to dynamically points your file and table.

    Since your are parameterizing your datasets you will use single dataset to point all files dynamically and single dataset to point to all tables dynamically.

    Hope this will help. Please let us know if any further queries.

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators