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. Problem in Data base

Problem in Data base

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
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.
  • A Offline
    A Offline
    Ashraj1982
    wrote on last edited by
    #1

    Hi Can any one tell me how to check for the end of row condition in the data base table using c#. Is there any function like Movenext() to fetch next row values from the table?

    C 1 Reply Last reply
    0
    • A Ashraj1982

      Hi Can any one tell me how to check for the end of row condition in the data base table using c#. Is there any function like Movenext() to fetch next row values from the table?

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

      Ashraj1982 wrote:

      Can any one tell me how to check for the end of row condition in the data base table using c#. Is there any function like Movenext() to fetch next row values from the table?

      It all depends on how you are getting the data out of the database in the first place. It sounds like you are using a DataReader. The DataReader.Read() pulls in the next row from the database. It returns true if a row was fetched or false if there are no more rows. Does this help?


      "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871) 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