Time Out Error

From: larry (anonymous_at_discussions.microsoft.com)
Date: 04/21/04


Date: Wed, 21 Apr 2004 10:31:13 -0700

I am getting an error on an ASP page that does a simple
update to a single row in a table. The SQL statement is:

UPDATE tblRecHead SET Qty = 1 WHERE SeqNum = 123 and
LineNumber = 12

The ASP page will time out and return an error. If I
change the SQL to:

UPDATE tblRecHead SET Qty = 1 WHERE SeqNum = 123 and
LineNumber = 12 and 1 = 0

Obviously, nothing is updated, but the SQL is executed
without a problem. If I attempt to update the record in
QA, using the first SQL statement, it works fine. There
is an index on SeqNum,LineNumber.

Another thing to note is that a select is done prior to
this and it returns data. Also, if I convert the first
SQL statement to

SELECT * FROM tblRecHead WHERE SeqNum = 123 and
LineNumber = 12

This returns one row.

Any ideas anyone?? Any help will be appreciated.

Larry...



Relevant Pages