Hi,
Firstly i would disable the keys if possible before inserting - then activate them again after you have finished.
If you are doing this in one large insert I would advise against it, on my servers the optimum number of records to insert in one statement seems to be around 500 - so if I loop and do 20 insert statements rather than 1 (for 10 000 records) it seems to perform better.
Main Topics
Browse All Topics





by: akshah123Posted on 2007-03-01 at 13:28:14ID: 18635971
Two questions to understand your current situation.
1. Are you providing one inserting 1 row at a time or multiple rows?
2. Are you opening and closing the connection after each insert?