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. How to access xml tag in sql server column

How to access xml tag in sql server column

Scheduled Pinned Locked Moved Database
questiondatabasesql-serversysadminxml
2 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.
  • C Offline
    C Offline
    CandyMe
    wrote on last edited by
    #1

    Hello, I'm using SQL Server 2005. I have a column named "DATA" with ntext datatype that stores xml data which contains these tags: Text Free Meal Thank you for participating. Just present this [MCCode] to claim your free meal. How do I use sql select statement to access and return the string "Thank you for participating..." as a result? Thank you.:~ :->:-O

    C 1 Reply Last reply
    0
    • C CandyMe

      Hello, I'm using SQL Server 2005. I have a column named "DATA" with ntext datatype that stores xml data which contains these tags: Text Free Meal Thank you for participating. Just present this [MCCode] to claim your free meal. How do I use sql select statement to access and return the string "Thank you for participating..." as a result? Thank you.:~ :->:-O

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Although I've not had a chance to use it yet, isn't that what the new XML datatype is for?


      Scottish Developers events: * .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

      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