SQL Server 2008 database timeout after delete

Posted by stephenbayer on Stack Overflow See other posts from Stack Overflow or by stephenbayer
Published on 2010-03-27T15:04:23Z Indexed on 2010/03/27 15:13 UTC
Read the original article Hit count: 146

Filed under:

I'm running the following statement, it is working locally with SQL Server 2008, however, there is SQL Server 2008 Express on the development server, and after the sql statement runs, I am unable to do SELECT statements on the table in which I deleted the record. Both databases were created with the same table creation scripts.

"DELETE FROM [dbo].[tblMiddayMover] WITH (ROWLOCK)  WHERE [idMiddayMover] = @IdMiddayMover"

What reasons would this statement ever cause the database to hang.

After executing that statement, the following SELECT statement causes an error.

"SELECT * FROM [dbo].[tblMiddayMover] WHERE [fldActive] = 1"

I get the following error:

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

I can do select statements on any other table with no issues.

© Stack Overflow or respective owner

Related posts about sql-server-2008