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. General Programming
  3. XML / XSL
  4. XML datatype in sql server 2005

XML datatype in sql server 2005

Scheduled Pinned Locked Moved XML / XSL
questioncsharpasp-netdatabasesql-server
3 Posts 2 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.
  • R Offline
    R Offline
    Revathij
    wrote on last edited by
    #1

    How can i insert data from textbox into xml datatype column using asp.net? Also how can i select the data from xml datatype in the datagrid? Any one can help me plz....

    N 1 Reply Last reply
    0
    • R Revathij

      How can i insert data from textbox into xml datatype column using asp.net? Also how can i select the data from xml datatype in the datagrid? Any one can help me plz....

      N Offline
      N Offline
      Naji El Kotob
      wrote on last edited by
      #2

      Hi, Without going into the complexity of Schema you could do the following: INSERT INTO TableName values('lt root /gt') lt = < gt = > Note: the value should be a valid XML documents or XML fragment (e.g. an XML document that doesn't have a root) for more information about XML, you can try this website http://jameleon.sourceforge.net/xmlBasics.html[^] about getting XML from datagrid, sorry I didn't understand your question, please explain it more. Hope this helps :)

      NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice...

      R 1 Reply Last reply
      0
      • N Naji El Kotob

        Hi, Without going into the complexity of Schema you could do the following: INSERT INTO TableName values('lt root /gt') lt = < gt = > Note: the value should be a valid XML documents or XML fragment (e.g. an XML document that doesn't have a root) for more information about XML, you can try this website http://jameleon.sourceforge.net/xmlBasics.html[^] about getting XML from datagrid, sorry I didn't understand your question, please explain it more. Hope this helps :)

        NajiCo http://www.InsideVB.NET[^] It's nice 2b important, but it's more important 2b nice...

        R Offline
        R Offline
        Revathij
        wrote on last edited by
        #3

        i want to insert data from textbox into xml datatype column in database. i tried the coding for this... But it accepts the data with tags( Root> ).If we enter without the tag, it is showing error.

        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