Hi,
I have a INSERT of 1.5 million rows into the main fact table from another temp table.
The sql statemnt is like
Insert Into (column1, column2 ...)
select column1, column2.... from
This insert is written inside BEGIN TRANSACTION AND COMMIT TRANSACTION.
When inside the transaction, the insert simply hangs, but without transactions the same query executes in around 2 hours.
Any idea why this must be happening?
The fact table already has 550 million records. it has one index on it.
It is Windows 2003 server (64bit) with SQL Server 2005 (32 bit).
This insert use to work some time back in around 20-30 minutes but it has stopped recently.
Any suggestions would be most welcome.
Regards,
Gopal
↧