Loading massive data from text file to Access Database .MDB (time problem) 
Author Message
 Loading massive data from text file to Access Database .MDB (time problem)

Environment: VC++ 6.0, NT 4.0

I try to develop with CDaoDatabase the next situation:
I'm developing an application with Visual C++ 6.0 that has to load thousands
(even more than 100000) of rows from a text file (one row per line, with a
delimiter-character between fields), and add them to an existing .mdb access
database. The main problem is the time because my ODBC version of
application use 40 hours to load the database. If you read one record at a
time from the text file, and add it to the database, then no matter what
technology you're using: it's too slow. I found a Visual Basic instruction
that makes what I want: "TransferText", but there's nothing like that in
DAO, OLE DB nor ADO. So, I guess I've got to simulate it.

    The faster results I've obtained were with CDAODatabase objects, but I
still had to incorporate record-by-record in my database. Is there any way
to load many records at a time? It doesn't matter if I add records
one-by-one, but I want them to be written to disk in blocks.

    I need something like the BCP (Bulk Copy Program) utility of SQLServer
but for Microsoft Access
Any sugestions?
Thanks in advance.

Fri, 05 Jul 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. How to access a database file *.mdb thorugh Internet

2. Want to access database(.mdb) file on the web from VC++

3. CDAORecordSet and Microsoft Access MDB files problems???

4. Can I access an access (mdb) file within DOS

5. accessing outlook from vc (via access mdb file)

6. Converting Access 97 MDB file to Access 2000

7. ODBC .mdb Database access

8. Console app and .mdb database access?

9. Is it possible to create an Access Database (.MDB) with MFC

10. Accessing (.mdb) database from console app.

11. Using ADOCE to access a database ported from mdb to cdb

12. How to read text file and access data?


Powered by phpBB® Forum Software