SQL Query in CSV File in blob storage

Rohit Kulkarni 731 Reputation points
2022-01-28T15:54:46.027+00:00

Hello Team,

I am having 3 queries in sql server . I need to run all the 3 queries and need to copy the data into 3 different files into Azure blob storage.(FiileName1,FileName2,FileName3) please advise me how it can be done.

Regards
Rohit

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

1 answer

Sort by: Most helpful
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2022-01-28T16:03:20.58+00:00

    Hey,
    There can be multiple ways:

    1. Easy way would be to create 3 different copy activities with each query mapping to each file
    2. other way would be to create a config/parameter value with the queries and its corresponding file name and using foreach activity (3 iterations) and one copy activity with source query value parameterized as item().Query and filename as item().filename, you can have 3 diff files one per query
    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.