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. C#
  4. Using Oledb dataadapter c#

Using Oledb dataadapter c#

Scheduled Pinned Locked Moved C#
databasecsharpsql-serversysadmindata-structures
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
    chandler83
    wrote on last edited by
    #1

    Hi, i am using c# and sql server 2000. i want to execute this below query in my application using oledb dataadapter. sql query: select preferencevalue from ParticipantPreference for xml raw; (also the above column contains an XML data as a value in it.) this query gives me an xml formatted correct output when i use SQL dataadapter. If i use oledb dataadapter my result is in BYTE array format... plz help:(( me.

    W 1 Reply Last reply
    0
    • C chandler83

      Hi, i am using c# and sql server 2000. i want to execute this below query in my application using oledb dataadapter. sql query: select preferencevalue from ParticipantPreference for xml raw; (also the above column contains an XML data as a value in it.) this query gives me an xml formatted correct output when i use SQL dataadapter. If i use oledb dataadapter my result is in BYTE array format... plz help:(( me.

      W Offline
      W Offline
      WillemM
      wrote on last edited by
      #2

      I think it has something to do with oledb. Can you try the following with that byte array? byte[] data = ...; //The data array that you got from the adapter ASCIIEncoding.GetString(data);

      WM. What about weapons of mass-construction?

      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