Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8314023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:41:05+00:00 2026-06-08T20:41:05+00:00

i am using the OleDbDataReader to read a column from an Access database and

  • 0

i am using the OleDbDataReader to read a column from an Access database and i want to be able to use the same reader to read the column again in the same function because i am doing some comparison between 2 databases and some times the identical records in the databases are not in the same order so i’ve to loop through the database until i find the specified record then compare.

questions are

is there a function to get the current row index of an OleDbDataReader?

and how do i reset the OleDbDataReader to the first row?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T20:41:06+00:00Added an answer on June 8, 2026 at 8:41 pm

    You can’t reset the reader to the start because it is designed for forward-only reading.

    There are a couple of other ways to approach this kind of problem:

    1. If the set of data you are comparing is reasonably sized and you are comparing on one field, you could cache the data from one database in a keyed object, such as a generic dictionary. Then, as you are reading data from the second database, you could fetch the details from the dictionary based on the key and perform the comparison that way.

    2. You could issue standalone queries for each record in one database to see if there is a match in the second database rather than having nested readers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using C# to read info from an access database (works great, thx stackoverflow)
I'm trying to read a Microsoft Access Database using C#. I'm using the OLE-DB
I'm using an OleDbConnection, OleDbCommand, and OleDbDataReader to read a CSV file into a
I am using MS Access Database. Now I have to update a particular cell
I am using C# and OleDb to read data from an excel 2007 file.
Im using this code to connect to access 2007 database : public void RetrieveData(){
I am using C#(asp.net). I have two tables(data and details) in a same database.
Using a populated Table Type as the source for a TSQL-Merge. I want to
Using the Redis info command, I am able to get all the stats of
I'm using the OleDB DataReader to get data from my excel files (but this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.