Query to insert data into Azure SQL Database from JSON files which is located in GITHub Repository using GITHUB Actions

Pulipati Vedanth 111 Reputation points
2021-07-26T09:46:34.023+00:00

I am trying to insert .JSON file data into Azure SQL Database using GitHub Actions. Looking for an sql query how we can insert the JSON file data into Azure SQL Database

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Saurabh Sharma 23,751 Reputation points Microsoft Employee
    2021-07-26T20:50:43.353+00:00

    Hi @Pulipati Vedanth ,

    Thanks for using Microsoft Q&A !!
    As per my limited knowledge on GitHub Actions, I do not think there is a way to load the content of JSON file to a SQL database however you can explore options of reading the file content using Read-file-Action and pass the data to SQL procedure as a variable and then write insert code at SQL end. I also suggest you to post your question to GitHub Actions Support Community for a better solution from community experts.

    Thanks
    Saurabh

    0 comments No comments

0 additional answers

Sort by: Most helpful