This is a discussion on blocks hangup database when inserting in 1 specific table within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi, We use a database with about 40 related tables. Some tables contain as much as 30.000 records. We ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, We use a database with about 40 related tables. Some tables contain as much as 30.000 records. We use Access97 as an interface to the database. Now recently we have the problem that when we want to insert a row in one specific table (alwasy the same) the database makes blocks. Details: - about 10% of the data was inserted using copying from Excel, before this action there was no problem, though there is no evidence that this causes the problem. - inserting rows via the Query Analyzer works fine, via Access causes trouble. - the tempdb lofile has grown to 48Mb. Has anyone ideas about what is going on and what I can do to solve the problem? TAV, Jan Willems |
| ||||
| Jan Willems (jwillems@xs4all.nl) writes: > We use a database with about 40 related tables. Some tables contain as > much as 30.000 records. We use Access97 as an interface to the > database. Now recently we have the problem that when we want to insert > a row in one specific table (alwasy the same) the database makes > blocks. "Makes blocks"? You mean that the INSERT operation is blocked, and you have to cancel the operation to continue? When the situation occurs, use sp_who from Query Analyzer, and see if any process has a non-zero value in the Blk column. In such case, the process listed in Blk, blocks the spid of that row. -- Erland Sommarskog, SQL Server MVP, sommar@algonet.se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp |