Hi anonymous user ,
Welcome to Microsoft Q&A platform and thankyou for posting your query.
As I understand your query , you have a JSON input which you want to Load it as a table content in Azure SQL DB. In this process, you want to transform array items into separate columns in the table. Please correct me if my understanding is wrong.
In order to achieve this requirement , I would recommend to use Data flow which is the best solution for transforming data using ADF. Here are the steps you need to follow.
1. Upload the Json file in ADLS and create a linked service and dataset pointing to the same file . Import schema during this process
2. Create a new Dataflow and In Source transformation , use the above created dataset . Go to source option, Under JSON settings, select document form as 'Array of documents'
3. Use Surrogate key transformation to create an identity column 'Id'
4. Use Select transformation to bring columns in correct sequence
5. Use Flatten transformation to flatten the array 'Question'
6. Use Sink transformation with Azure SQL DB dataset to load the data into SQL table
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote 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