SQL Server - Parse/Read XML Data

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ม.ค. 2025

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

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

    Great job, clear and perfect pace ; thank you !

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

    Hey, thanks for this. Excellent (and quick) explanation of the first steps. Just what I was looking for.

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

    This was exactly what I needed. Well done!

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

    Wow! Thank you for this very useful video!

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

    Excellent! Thank you for the explanation!

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

    Super helpful, thank you!

  • @НикитаЗубенко-о1о
    @НикитаЗубенко-о1о 2 ปีที่แล้ว +1

    Thanks, that was helpfull as a starting point!

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

    Excellent coverage

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

    Do you have a video about retrieving data from an XML column type and converting that into a temporary table? I can't seem to find anything on the web and I keep getting back to this answer which is the opposite of what I am looking for.

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

      I don't have a video on this but I'll add to my list of videos to create.

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

    Excelent video

  • @vivektarab1959
    @vivektarab1959 2 หลายเดือนก่อน

    0:42
    4:49 - Now Let us just test this
    7:03

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

    Thanks a lot! 🙌🙏

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

    Excellent illustration, very helpful. I have slightly different requirement. Can you please provide solution for it! I have a sql table with one of the columns that's an xml type . I am trying to use xml nodes and value function but it's retuning all nulls!
    I am using the below query where record_temp is the xml column name in table1
    Select t1.*, a.t.value('(client_id[1]', varchar(50)') as client_uid from table1 t outer apply t.record_temp.nodes('//record_temp') as a(t)

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

    I have done something similar with FOR XML using a correlated sub queries but it didn't work well when we started writing out large XML files. I'm talking like 100k to a few million lines. We tried using c# script task in ssis and it didn't work out much better. Ended up using the query in a python script, breaking up the results into multiple files and wrote the results as a string then pretty printed the xml using more python.
    Have you come across any native solutions in SSIS or SSMS that can write out large XML files, like 100mb to 800mb in size?

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

      If the processing that you're doing doesn't have to be XML then I highly recommend you use JSON. XML has a significantly larger file size and has lots of overhead which causes it to generally be a lot slower. JSON is specifically designed for data interchange, which means the parser is a lot faster and less complicated. So when it comes to working with large files, you're going to have much better success if you work with JSON.
      To answer your question, I have not worked with large (100 MBs+) XML files.

  • @sandeepverma-qi6lo
    @sandeepverma-qi6lo ปีที่แล้ว

    how to identify columns in xml file

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

    you can loop through this xml file then