Hi,
I'm inserting a few rows (4.8 million) into a SQL Server 2000 database running on a PC running Windows 2000 Server with 256mb RAM.
The inserts are being done via Microsoft's ODBC driver, feeding the driver is a Perl v5.6.1 script using the DBI.
This mass insert has been running a while now and every 3/4 of a million or so records I get the following error message and no inserts occurr for 20 minutes or so:
"Time-out occurred while waiting for buffer latch type 2 for page (1.105), database ID 7. (SQL-37000)"
There are no other processes using the database while the insert is taking place.
During normal inserts Task Manager shows the CPU split between Perl (65%) and SQL/Server (35%). While this is taking place Task Manager shows Perl at 0% and SQL/Server mostly 0 but sometimes around 17% or 20%.
I'm not really a SQL/Server sort of chap, so I'd appreciate any help or suggestions anyone has.
Regards, Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
I'm inserting a few rows (4.8 million) into a SQL Server 2000 database running on a PC running Windows 2000 Server with 256mb RAM.
The inserts are being done via Microsoft's ODBC driver, feeding the driver is a Perl v5.6.1 script using the DBI.
This mass insert has been running a while now and every 3/4 of a million or so records I get the following error message and no inserts occurr for 20 minutes or so:
"Time-out occurred while waiting for buffer latch type 2 for page (1.105), database ID 7. (SQL-37000)"
There are no other processes using the database while the insert is taking place.
During normal inserts Task Manager shows the CPU split between Perl (65%) and SQL/Server (35%). While this is taking place Task Manager shows Perl at 0% and SQL/Server mostly 0 but sometimes around 17% or 20%.
I'm not really a SQL/Server sort of chap, so I'd appreciate any help or suggestions anyone has.
Regards, Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.