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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. how to read the xml data from sql server

how to read the xml data from sql server

Scheduled Pinned Locked Moved Database
databasesql-serversysadminxmltutorial
4 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.
  • I Offline
    I Offline
    icanmakeiteasy
    wrote on last edited by
    #1

    hey can any one tell me how to read the xml data from sql server.... thanks in advance

    icanmakeiteasy

    J W 2 Replies Last reply
    0
    • I icanmakeiteasy

      hey can any one tell me how to read the xml data from sql server.... thanks in advance

      icanmakeiteasy

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2
      1. Open a connection 2) Issue a SQL Command using one of the FOR XML commands or read froma n Xml column 3) Close Connection Further reading[^]
      I 1 Reply Last reply
      0
      • J J4amieC
        1. Open a connection 2) Issue a SQL Command using one of the FOR XML commands or read froma n Xml column 3) Close Connection Further reading[^]
        I Offline
        I Offline
        icanmakeiteasy
        wrote on last edited by
        #3

        thanks for reply i have a xml file at c:\sample.xml i want to read the sample.xml file from my stored procedure how can i?

        icanmakeiteasy

        1 Reply Last reply
        0
        • I icanmakeiteasy

          hey can any one tell me how to read the xml data from sql server.... thanks in advance

          icanmakeiteasy

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          Based on your posts, use the OPENROWSET[^] function, like:

          SELECT * FROM OPENROWSET(BULK 'c:\sample.xml', SINGLE_BLOB) AS somealias

          The need to optimize rises from a bad design.My articles[^]

          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