how can i save data from api(json file) in sql server?

Saliha Saeed 1 Reputation point
2021-12-06T06:28:18.033+00:00

I'm a beginner and my task is to retrieve data from API and then read retrieved file and then insert into SQL server. I have retrieved data by JavaScript but Now I want to place it in SQL server by using C# . how can i do it

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
293 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yijing Sun-MSFT 7,061 Reputation points
    2021-12-06T08:50:19.677+00:00

    Hi @Saliha Saeed ,
    I recommend you could use ajax jquery with webmethod to pass the property and then save into the database.Just like this:
    155243-new-text-document-3.txt
    Best regards,
    Yijing Sun


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments