How to speed up Bulk Insert?

G

Guest

Hi

I have a table with 1710 records. I used the ado GetRows() function to dump
all the data into a variant variable.

Now i would like to grab all the data and insert it into another table.

I used ado to create a new recordset for the table and using do loop to go
through the variant variable to insert it. This takes around 4 minutes to do
it, whereas getrows() is instant.

Is there a way to speed up the bulk inserts?

thanks
sid
 
J

Justin Hoffman

siddahuja said:
Hi

I have a table with 1710 records. I used the ado GetRows() function to
dump
all the data into a variant variable.

Now i would like to grab all the data and insert it into another table.

I used ado to create a new recordset for the table and using do loop to go
through the variant variable to insert it. This takes around 4 minutes to
do
it, whereas getrows() is instant.

Is there a way to speed up the bulk inserts?

thanks
sid

In general, running an append query will be the fastest possible way.
Simply adding 1710 records could take under a second!
 

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

Top