Hi There,
I have an update statement to update a field of a table (~15,000,000
records). It took me around 3 hours to finish 2 weeks ago. After that
no one touched the server and no configuration changed. Until
yesterday, I re-ran it again and it took me more than 18hrs and still
not yet finished!!!
What's wrong with it? I can ran it successfully before. I have tried
two times but the result was still the same.
My SQL statement is:
update [all_sales] a
set a.accounting_mo nth = b.accounting_mo nth
from date_map b
where a.sales_date >= b.start_date and a.sales_date < b.end_date;
An index on [all_sales].sales_date is built successfully.
A composite index on ([date_map].start_date, [date_map].end_date) is
built successfully.
My server config is:
SQL Server 2000 with Service Pack 3
Windows 2000 with Service Pack 4
DELL PowerEdge 6650 Server
DUAL XEON 1900MHz Processors
2G RAM
2G Page File on Drive C
2G Page File on Drive D
DELL Diagnostics on all SCSI harddisks were all PASSED.
Any experts could simly give me a help????
Thanks x 1,000,000,000
I have an update statement to update a field of a table (~15,000,000
records). It took me around 3 hours to finish 2 weeks ago. After that
no one touched the server and no configuration changed. Until
yesterday, I re-ran it again and it took me more than 18hrs and still
not yet finished!!!
What's wrong with it? I can ran it successfully before. I have tried
two times but the result was still the same.
My SQL statement is:
update [all_sales] a
set a.accounting_mo nth = b.accounting_mo nth
from date_map b
where a.sales_date >= b.start_date and a.sales_date < b.end_date;
An index on [all_sales].sales_date is built successfully.
A composite index on ([date_map].start_date, [date_map].end_date) is
built successfully.
My server config is:
SQL Server 2000 with Service Pack 3
Windows 2000 with Service Pack 4
DELL PowerEdge 6650 Server
DUAL XEON 1900MHz Processors
2G RAM
2G Page File on Drive C
2G Page File on Drive D
DELL Diagnostics on all SCSI harddisks were all PASSED.
Any experts could simly give me a help????
Thanks x 1,000,000,000
Comment