How Read JSON Data From URL In SQL Server

前端 未结 2 1334

I\'m trying to read JSON data from a URL in SQL Server 2008, using this code:

DECLARE @temp table (RowNum int, DATA N         


        
相关标签:
2条回答
  • 2021-01-14 13:58

    E.J. explained it quite well, I agree with him.

    I would like to add that if you want to keep everything in database code you can try CLR procedures that are essentially written in C# but work inside SQL Server.

    See these links for details on how to do this in C#

    HTTP request with post
    How to make a GET request by using Visual C#

    0 讨论(0)
  • 2021-01-14 13:59

    This is an example of "just because you can, doesn't mean you should".

    SQL Server is not the right tool for this job; the fact that it works at all is amazing. If you want to speed it up, put in in a c# or php program and let SQL server do that job it was intended for. Processing jSON responses is not one of them.

    0 讨论(0)
提交回复
热议问题