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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. OleDbDataReader - reading order

OleDbDataReader - reading order

Scheduled Pinned Locked Moved C#
helpdatabasequestion
4 Posts 2 Posters 1 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.
  • I Offline
    I Offline
    Islorvat
    wrote on last edited by
    #1

    Hi guys, I've searched google but didn't find anything regarding this issue. I'm updating an MS Access table after reading some fields from the same table. While doing this i have a label to check how many rows have been processed out of total and i see that the reader jumps from an ID to another, process a few rows then comes back to the ID before jump happened. Is this thing normal? The table is created from an imported text file using Access.Application.DoCmd.TransferText. I thought compacting the database after import will fix this, but didn't. Any ideas? Thank you!

    L 1 Reply Last reply
    0
    • I Islorvat

      Hi guys, I've searched google but didn't find anything regarding this issue. I'm updating an MS Access table after reading some fields from the same table. While doing this i have a label to check how many rows have been processed out of total and i see that the reader jumps from an ID to another, process a few rows then comes back to the ID before jump happened. Is this thing normal? The table is created from an imported text file using Access.Application.DoCmd.TransferText. I thought compacting the database after import will fix this, but didn't. Any ideas? Thank you!

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      IMO a database is not supposed to obey a specific order, unless you specify one. Ultimately if you don't specify an order, the results could be different each time. I always specify an order before the user gets to see the data, so he shouldn't get any surprises here. :)

      Luc Pattyn [My Articles] Nil Volentibus Arduum

      The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
      Please use <PRE> tags for code snippets, they improve readability.
      CP Vanity has been updated to V2.3

      I 1 Reply Last reply
      0
      • L Luc Pattyn

        IMO a database is not supposed to obey a specific order, unless you specify one. Ultimately if you don't specify an order, the results could be different each time. I always specify an order before the user gets to see the data, so he shouldn't get any surprises here. :)

        Luc Pattyn [My Articles] Nil Volentibus Arduum

        The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
        Please use <PRE> tags for code snippets, they improve readability.
        CP Vanity has been updated to V2.3

        I Offline
        I Offline
        Islorvat
        wrote on last edited by
        #3

        It just didn't cross my mind to order by ID. :) Thanks!

        L 1 Reply Last reply
        0
        • I Islorvat

          It just didn't cross my mind to order by ID. :) Thanks!

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          You're welcome. :)

          Luc Pattyn [My Articles] Nil Volentibus Arduum

          The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
          Please use <PRE> tags for code snippets, they improve readability.
          CP Vanity has been updated to V2.3

          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