Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Load XML file in the sql server 2005 table......

Load XML file in the sql server 2005 table......

Scheduled Pinned Locked Moved Database
databasesql-serversysadminxml
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pranavcool
    wrote on last edited by
    #1

    Hi, I want to load xml file i to the sql server 2005 table. Foe e.x i have a xml file containing details '<'employee'>' '<'firstname'>'abc'<'/firstname'>' '<'lastname'>'xyz'<'/lastname'>' '<'/employee'>' now i want to load this data into the table in sql server 2005 database. The table contains 2 columns: firstname and lastname i want to load this xml data to this table in to the corresponding column. so is it possible through T-sql query.ID yes,please let me know and if not please give me some alternative to load this xml data in to the table. Regards, pranav.

    Pranav Dave

    M V 2 Replies Last reply
    0
    • P pranavcool

      Hi, I want to load xml file i to the sql server 2005 table. Foe e.x i have a xml file containing details '<'employee'>' '<'firstname'>'abc'<'/firstname'>' '<'lastname'>'xyz'<'/lastname'>' '<'/employee'>' now i want to load this data into the table in sql server 2005 database. The table contains 2 columns: firstname and lastname i want to load this xml data to this table in to the corresponding column. so is it possible through T-sql query.ID yes,please let me know and if not please give me some alternative to load this xml data in to the table. Regards, pranav.

      Pranav Dave

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Looks like plenty of samples here[^]

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • P pranavcool

        Hi, I want to load xml file i to the sql server 2005 table. Foe e.x i have a xml file containing details '<'employee'>' '<'firstname'>'abc'<'/firstname'>' '<'lastname'>'xyz'<'/lastname'>' '<'/employee'>' now i want to load this data into the table in sql server 2005 database. The table contains 2 columns: firstname and lastname i want to load this xml data to this table in to the corresponding column. so is it possible through T-sql query.ID yes,please let me know and if not please give me some alternative to load this xml data in to the table. Regards, pranav.

        Pranav Dave

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        hi see this http://www.codeproject.com/script/Forums/View.aspx?fid=1725&msg=2932578[^] Hope it Helps

        Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.tiyaneProperties.co.za vuyiswa@its.co.za www.ITS.co.za

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups