OLEDB - Slow Inserts
Thanks
Thanks
Thanks
Chris Condrey wrote:
Unfortunately that's not an option as getting MSDE laid down on a machine is a royal pain. This is a client application so ease of deployment is critical. I am looking for some performance suggestions related to using OLEDB (.Net 1.1) and large numbers of inserts against an .MDB file. Thanks
are you using the latest msde release from MS?
are you familiar with the setup.ini file?
the command line for installing?
I have absolutely no problems.
Though I had many before using the latest release and understand the ini and the command line.
Event wrote a delphi wrapper for automating user coustomized installs in about 5 minutes. We use the utility all the time with no problems at all.
that being said. . .
How are you trying to push the data into the database? ADO.NET commands?
Maybe interoping the adodb libraries might be a little faster.
Connect to the database and open a client side recordset on the table inquestion that has no rows, so you get the schema for the table and set its active connection to nothing/null.
Repeatedly use the recordset method addnew and populate with the data. . .
when you have finished populating, reconnect the recordset and call the UpdateBatch method.
That might be faster.
So if you want network clients to connect via mdac you have to set:
DISABLENETWORKPROTOCOLS = 0