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. SQLServer and XML RAW

SQLServer and XML RAW

Scheduled Pinned Locked Moved Database
databasexmltutorialquestion
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.
  • G Offline
    G Offline
    Guillermo Rivero
    wrote on last edited by
    #1

    Does anyone knows how to extract the value of a query using FOR XML ?? All I want to do is assign the result value into a variable. Thanks :confused: Free your mind...

    M 1 Reply Last reply
    0
    • G Guillermo Rivero

      Does anyone knows how to extract the value of a query using FOR XML ?? All I want to do is assign the result value into a variable. Thanks :confused: Free your mind...

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      It basically comes out as a set of string fields. If using classic ADO, use a Recordset to capture it. If using ADO.NET, use a SqlDataReader.

      G 1 Reply Last reply
      0
      • M Mike Dimmick

        It basically comes out as a set of string fields. If using classic ADO, use a Recordset to capture it. If using ADO.NET, use a SqlDataReader.

        G Offline
        G Offline
        Guillermo Rivero
        wrote on last edited by
        #3

        I know it works fine in the middle tier code. I just want to leave the result in the data tier (SQL Server). What I'm trying to do is a kind of audit trail, so when users update a record, I can take a snapshot of it (FOR XML RAW) and write it to another table. :) Free your mind...

        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