Timeout Problem - Please help!!

Timeout Problem - Please help!!

Post by NZ » Thu, 10 Jan 2002 23:39:44



Our one database can have up to 3000 lock timeouts every 20 minutes or so.
It's just one particular database out of 10.  Anyway, whenever we do a
select in Enterprise manager the timeout errors start pouring in more than
normal even after the select has finished. The only way we can get the
timeout errors to stop is by manually inserting a record, moving to the last
record in the select result set (again, in Enterprise Manager), or closing
the table. This makes no sense.

We've had this problem before where we can't get control of our databases
until we insert a record or do some other manual data modification to the
table.

Now this doesn't stop all the timeouts but it slows them down.

One other thing: One way to avoid the problem of excess timeout errors is by
issuing the same select statement in Enterprise Manager but with a NOLOCK
hint. Then the timeouts don't increase but still this is no way to deal with
the situation since we still get a TON of timeout errors constantly.

Any help would be much appreciated.

 
 
 

Timeout Problem - Please help!!

Post by R. van Laak » Fri, 11 Jan 2002 22:48:37


How does a regular client retrieve the data, by an exe application, an IIS
application, etc? Or is it just you with the EM?

Raymond


Quote:> Our one database can have up to 3000 lock timeouts every 20 minutes or so.
> It's just one particular database out of 10.  Anyway, whenever we do a
> select in Enterprise manager the timeout errors start pouring in more than
> normal even after the select has finished. The only way we can get the
> timeout errors to stop is by manually inserting a record, moving to the
last
> record in the select result set (again, in Enterprise Manager), or closing
> the table. This makes no sense.

> We've had this problem before where we can't get control of our databases
> until we insert a record or do some other manual data modification to the
> table.

> Now this doesn't stop all the timeouts but it slows them down.

> One other thing: One way to avoid the problem of excess timeout errors is
by
> issuing the same select statement in Enterprise Manager but with a NOLOCK
> hint. Then the timeouts don't increase but still this is no way to deal
with
> the situation since we still get a TON of timeout errors constantly.

> Any help would be much appreciated.


 
 
 

Timeout Problem - Please help!!

Post by Wil » Sat, 12 Jan 2002 08:40:10


This is not a question that can be answered easily - esp. without more
information.  SQL Server is locking records because of the way that
you and other clients are accessing data (the way code was written)...

I'd look for applications that open cursors improperly (i.e.  if the
data does not need to be locked, don't lock it)...  Also look for
transactions that are started and never finished.

Have you run sp_lock during the times that you are experiencing
timeouts?  Sometimes this will help you narrow down what apps/clients
are causing the problem.

 
 
 

Timeout Problem - Please help!!

Post by NZ » Sun, 13 Jan 2002 00:20:58


The clients are using IIS to retreive data and the problem happens when I
run queries in EM. We are getting over 380,000 hits a day.



> How does a regular client retrieve the data, by an exe application, an IIS
> application, etc? Or is it just you with the EM?

> Raymond



> > Our one database can have up to 3000 lock timeouts every 20 minutes or
so.
> > It's just one particular database out of 10.  Anyway, whenever we do a
> > select in Enterprise manager the timeout errors start pouring in more
than
> > normal even after the select has finished. The only way we can get the
> > timeout errors to stop is by manually inserting a record, moving to the
> last
> > record in the select result set (again, in Enterprise Manager), or
closing
> > the table. This makes no sense.

> > We've had this problem before where we can't get control of our
databases
> > until we insert a record or do some other manual data modification to
the
> > table.

> > Now this doesn't stop all the timeouts but it slows them down.

> > One other thing: One way to avoid the problem of excess timeout errors
is
> by
> > issuing the same select statement in Enterprise Manager but with a
NOLOCK
> > hint. Then the timeouts don't increase but still this is no way to deal
> with
> > the situation since we still get a TON of timeout errors constantly.

> > Any help would be much appreciated.

 
 
 

1. Intermittent Timeout Problem - Please Help

I am attempting to connecting to a local copy of MSDE 7 via TCP/IP or
Multiprotocol on Win 98 and I get intermittent timeouts.

On my development PC it works fine using Multiprotocol but gives timeouts
every 5th connection attempt or so when using TCP/IP.

On the customers PC timeouts occur regularly if using Multiprotocol and
rarely using TCP/IP.

I am using a DSN'less connection, trying to specify everything in my
connection string to keep some sense of control over the complexities of
connections to SQL Server.

Using MDAC Ver 2.5

I have applied SP3 to MSDE.

Sql Server Version Information:
Microsoft SQL Server  7.00 - 7.00.699 (Intel X86)
May 21 1999 14:08:18
Copyright (c) 1988-1998 Microsoft Corporation
MSDE on Windows 4.10 (Build 2222:  A )

My connection string for Multiprotocol connection is as follows:

Provider=MSDataShape; Persist Security Info=False; Connect Timeout=10; Data
Source=DAN; User ID=sa; Password=; Initial Catalog=LSX2001; Network
Library=dbmsrpcn; Data Provider=SQLOLEDB; Application Name=Loss-X 2001;
Packet Size=4096; Auto Translate=True; Use Procedure for Prepare=1;
Workstation ID=DAN;

And for TCP/IP:

Provider=MSDataShape; Persist Security Info=False; Connect Timeout=10; Data
Source=DAN; User ID=sa; Password=; Initial Catalog=LSX2001; Network
Library=dbmssocn; Network Address=localhost; Data Provider=SQLOLEDB;
Application Name=Loss-X 2001; Packet Size=4096; Auto Translate=True; Use
Procedure for Prepare=1; Workstation ID=DAN;

Any assistance would be very much appreciated,

Thanks in advance,
Regards,
George Coney

2. Requery + Sort = BUG

3. Cloning problem -- please please please help

4. Oracle Express : moving and deleting databases

5. COMBO BOX, PLEASE HELP, PLEASE HELP, PLEASE HELP!

6. Analyze partitioned tables?

7. Timeout and Invalid Handle Errors. Please Help

8. sp_spaceused

9. Login Timeout Error - Need help please !

10. Timeout Expired error - Please help

11. Timeout Error 3669: please help

12. Timeout expired - Error No. 80040e31 - Please Help!

13. Please help - Timeout