473,385 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Read row on Access database

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,

Apr 1 '07 #1
1 3379

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.


"Anthoni" <de*********@gmail.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
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,

Apr 2 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: David ROBERT | last post by:
Hello, I need to read data from a MS Access database. The program (reader) is installed on a linux box and is written in python langage. The database is MS Access 2002 installed on a Win XP box...
7
by: Graham Taylor | last post by:
I've tried posting this in the 'microsoft.public.access' but I will post it here also, as I think it might be the webserver which is causing my problem. --------- I have an Access 2003 database...
4
by: Paul Malcomson | last post by:
I'm trying to finish implementing security on my database. I have secured the .mdb with a .mdw file as per the MS security FAQ with no problems. The last part of security that I need to...
4
by: Miguel Rivas | last post by:
Hello there, I have an application (c#) that uses MS Access to store the data. The application install and works fine but in one windows 2k box (with SP4) the application simple can't read the...
3
by: Dale Walker | last post by:
After a recent hard disk failure, I've rebuilt my PC (clean install) and uploaded the backed-up database. However, I can now only open the database in read-only mode. I did not set any special...
1
by: Darn | last post by:
Hi all How do i solve this problem. I'm web developer from Malaysia, the problem occurs when i ftp an Access database which i'm using for this particular web site for it's database.The form...
24
by: Bob Alston | last post by:
Anyone know a way to make all access to a linked table, in another Access MDB, read only? I really don't want all the hassle of implementing full access security. I can't do this at the server...
3
by: Doug | last post by:
Working on converting an Access front-end/SQL Server back-end to a .NET front/SQL Server back-end. We are also redesiging the SQL Server database. We have many Word/Excel documents that have...
4
by: Miro | last post by:
Hello! I have an ASP.NET application which needs to read some data from an Access database on Novell. I've found an article on Microsoft and did the following: I've created an account on...
8
by: paquer | last post by:
Database Users need to have Read/Write etc... permissions to the folder where the Database resides in order to create the lock file. I have read only users. I have set up the Shortcut that links...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.