![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, We have shifted one of our data processing to a new instance of SQL 2005. For this a new DB was created in SQL2005 and it is not an upgrade of SQL200 DB. The data processing application is a VB6 application that runs a batch process to insert about 4.5 million records everyday in this SQL 2005 database. I am using ADO (ver 2.6) Connection object to execute T-SQL insert statements to insert the 4.5 mill. records. This same application used to insert the data in the SQL 2000 database and used to take about 2.5 hours to do so. After moving it to SQL 2005 the performance has really detriorated and it now takes more than 6 hours. Is there any configuration change that I need to do in SQL 2005? Please help. Note: There is also an instance of SQL 2000 running in the same server. TIA, Tawfiq |
#3
| |||
| |||
|
|
On Mon, 18 Feb 2008 19:14:11 -0800 (PST), Tawfiq tawfiq.choudh... (AT) gmail (DOT) com> wrote: I get the impression you have VB6 code that does the equivalent of: for i = 1 to 4.5 million * insert one record next Isn't there a better way? A quick-and-dirty fix may be to continue to insert these records in your SQL2000 instance, and then bulk-insert them into the new db. But more than likely you can use SSIS to more efficiently import your data. -Tom. Hi, We have shifted one of our data processing to a new instance of SQL 2005. For this a new DB was created in SQL2005 and it is not an upgrade of SQL200 DB. The data processing application is a VB6 application that runs a batch process to insert about 4.5 million records everyday in this SQL 2005 database. I am using ADO (ver 2.6) Connection object to execute T-SQL insert statements to insert the 4.5 mill. records. This same application used to insert the data in the SQL 2000 database and used to take about 2.5 hours to do so. After moving it to SQL 2005 the performance has really detriorated and it now takes more than 6 hours. Is there any configuration change that I need to do in SQL 2005? Please help. Note: There is also an instance of SQL 2000 running in the same server. TIA, Tawfiq- Hide quoted text - - Show quoted text - |
#4
| |||
| |||
|
|
The application reads data from binary files and then inserts it into the db. I can improve perfomance by first writing the data first into text files and then doing bulk insert. But why is there such a big differnece in performce between SQL2000 vs SQL2005? |
![]() |
| Thread Tools | |
| Display Modes | |
| |