Hi Folks
I've recently upgraded an app from vb6 to vb.net
I've run into an issue where it takes about 15-20 times longer to write 1000
records to an MS Access database. (I'm sure it takes that long for 1 record
as well)
I'm writing 300k+ records to the database. The total time in VB6 to do this
is 10 min. in VB.Net it's about 3+ hours.
I'm adding the records using a DAO recordset..
The connection to a DAO.Database is made through a DAO.DbEngine
Dim myDB As DAO.Database
Dim mydbengine As DAO.DBEngine
mydbengine = New DAO.DBEngine
myDB = mydbengine.OpenDatabase(Application.StartupPath +
"\db\databaseName.mdb")
Switching to SQL, MSDE, or any other database technology is not an option at
this point. I must fix this issue.
My questions are as follows:
1. I've read that there is no official support for DAO in VN.Net. Can this
be the real reason
2. Will swithching to ADO.Net and connecting to the db using OleDb speed up
or slow down the process. I have read that using ADO.Net to connect to an MS
Access db, can be slow.
3. Are there other alternatives to speed up the process and get it back to
an acceptable state? Using MS Access and VB.Net of course.
I welcome any help on this issue
thanks folks
LDD