How to make API Request in SQL Server | Pt. 2

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 28

  • @bobmcc777
    @bobmcc777 ปีที่แล้ว

    Awesome! Just finished watching parts 1 & 2. Explanations were clear and concise. Thanks so much for putting this out there!

  • @houstonfirefox
    @houstonfirefox 4 ปีที่แล้ว +1

    Very nice presentation. Informative without over-explaining. I'm a DBA of 25+ years and recently ran into a developer calling CURL from xp_cmdshell to perform API operations knowing there had to be a better way. She is now simplifying her code and building out our API call libraries using your method. Thanks for putting this up sir!

  • @drewj8001
    @drewj8001 2 ปีที่แล้ว +1

    Thank you so much for this video and for part 1. Super helpful and easy to follow!!

  • @IvanHernandez-co3jy
    @IvanHernandez-co3jy 4 ปีที่แล้ว +3

    Muchas gracias por el tutorial, me está sirviendo mucho y qué pena que tengas tantas vistas y pocos hayan agradecido tu esfuerzo, no les costaba nada dejar un LIKE. Gracias!

  • @monthlysurvey
    @monthlysurvey 2 ปีที่แล้ว +1

    This was fantastic. Thank you so much.

  • @GP3_907
    @GP3_907 2 ปีที่แล้ว

    Great video. Many thanks

  • @marcosoliveira8731
    @marcosoliveira8731 4 ปีที่แล้ว

    Beautiful!

  • @ericxls93
    @ericxls93 4 ปีที่แล้ว

    Great video! Thank you. Let’s see if I can put this in practice....

  • @jonnguyen3732
    @jonnguyen3732 2 ปีที่แล้ว +1

    How would one POST a file in this case? I'm having issues getting it to work.

  • @shubhammahajan6696
    @shubhammahajan6696 4 ปีที่แล้ว +4

    when i'm formatting json with 'with' keyword its putting null values in table

  • @lazyj-wb1eo
    @lazyj-wb1eo ปีที่แล้ว

    Hey, thank you for the video. This is all very new to me but I am super eager to learn about all this. I only recently got started with the whole ETL process, SQLs and APIs etc. My goal is to visualize data in Power BI and connect it to an SQL database. The connecting Power BI to a database is no problem, but the query result should be stored as table in the database.
    So my question would be: How would one store this query result in a table in your database? I am using SQL server management studio. Thank you in advance :)

  • @garimapatel7444
    @garimapatel7444 3 ปีที่แล้ว +1

    I am using the same approach but I am getting error 'JSON text is not properly formatted. Unexpected character '"' found at some position. How to handle this?

    • @garimapatel7444
      @garimapatel7444 3 ปีที่แล้ว

      If anyone has any idea, please provide the solution. Thanks in advance.

    • @jsonoku
      @jsonoku 3 ปีที่แล้ว

      @@garimapatel7444 If you did not find a solution, dm me and I can help. There are one or two sythax errors with the JSON text. I want to be sure you are not having a different error.

  • @jesusdiaz4978
    @jesusdiaz4978 4 ปีที่แล้ว

    Awesome video. It really helped. I've implemented your process and it works. The only issue I'm having is when scheduling a job to run my SP. It's dying out due to what seems like a malformed JSON response from the API itself. Odd thing is I call the stored procedure manually and it works just fine. It's only when the job calls the executing of my stored procedure that it throws an error. Question: any way to edit the 'responseText' to remove/replace the "double-quotes" which seem to be what's causing my scheduled job to error out? Or any way to limit the "fields/properties" that are returned in the JSON 'responseText'?

    • @bmacpwns
      @bmacpwns 3 ปีที่แล้ว

      try putting SET TEXTSIZE -1 before calling the sp, fixed it for me

    • @houstonfirefox
      @houstonfirefox 2 ปีที่แล้ว

      You could use the REPLACE() function to replace/remove any quotes that are giving you grief 😀

  • @jphumani
    @jphumani 2 ปีที่แล้ว

    Hi there Im getting a null response. Is there any email i cant write you? I cant send you url here cause the site is blocking it.

  • @predator21youtoube
    @predator21youtoube 4 หลายเดือนก่อน

    gracias

  • @brechtmels18
    @brechtmels18 2 ปีที่แล้ว

    what could be my mistake if i only get half a json string back? It returns a string of 65536 characters but in postman I get a string of 400k characters.

  • @marcusholm2227
    @marcusholm2227 4 ปีที่แล้ว

    Great video!
    Currently I'm having trouble with joining the parsed values to a table in my own database. Any tips?

    • @SigmaCoding
      @SigmaCoding  4 ปีที่แล้ว +1

      Are you trying to parse the values and insert it directly into an existing table?

    • @marcusholm2227
      @marcusholm2227 4 ปีที่แล้ว

      @@SigmaCoding That's exactly what I'm trying to do.

    • @SigmaCoding
      @SigmaCoding  4 ปีที่แล้ว +2

      @@marcusholm2227 I have some code on GitHub that might make this process easier for you. Here is the link: github.com/areed1192/sigma_coding_youtube/blob/master/t%20sql/Making%20API%20Requests%20-%20Insert.sql
      Now this will insert it into a Non-Existing Table but it should give you an idea of how to take it to the next step. Let me know if you run into any issues.

  • @AndrewCoppock
    @AndrewCoppock 2 ปีที่แล้ว

    Getting an unexpected 0x80072EE2 on the Send doing a GET which I have working in POSTMAN.