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. Visual Basic
  4. VB.NET Disconnected DataReader...

VB.NET Disconnected DataReader...

Scheduled Pinned Locked Moved Visual Basic
databasecsharpxmlquestion
1 Posts 1 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.
  • M Offline
    M Offline
    mikasa
    wrote on last edited by
    #1

    Ok, I am frustrated!:confused: I am trying to find the most optimal way to retrieve Data from a Database. I understand that there are basically 3 ways to do this: 1.) Stored Procedure (DataCommand), 2.) DataSet, 3.) DataReader. My dilemma is, I do not need to store this data for Saving later on (basically I am loading some ComboBoxes). I would like to use a DataReader but sometimes I hit conflicts where the program tries to open more than one Reader (which can't be done on the Same Connection). I do not want more than one connection. I do NOT want to use a DataSet because I do not want the Overhead of creating one since it's not needed. I've tried MSSQLXML 3.0 SP2 to retrieve data through XML. I have tried using the SqlCommand.ExecuteXMLReader. Any method that using a "Reader" of some sort basically uses a DataReader behind the scenes! Is there some way that I can retrieve all of the Records into a Stream of some sort and then loop through it? In VB6 this was easy...I created a Forward Only / Read Only Disconnected Recordset.

    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