Read row on Access database

  • Thread starter Thread starter Anthoni
  • Start date Start date
A

Anthoni

Dear All,
I need to read data (specific column from specific row from specific
table) on Access database.
Since it need to b read numerous number of times, I want to connect
the database and load the desired columns outside the loop, and use
filter critiria inside the loop in order to hunt the desired data.

How I implement it on C#?
I made a connection with OleDbConnection
Then made OleDbCommand and use the OleDbDataReader, the problem is
when I try to load() the OleDbDataReader to DataTable object it not
seems to work (I used the ExecuteReader() to init the reader).
What is the right tactics to do it?
Thanks in advanced,
 
If you need to requery data, withOUT re talking to the database, you probaby
want to choose a DataSet object.

LoadDataSet is the method of interest.

After you get a generic (untyped) dataset working , you probaby want to
upgrade to a "strongly typed dataset".

Google typed dataset for some more info.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top