Unix Technical Forum

Timeout Expired - Same query working for months

This is a discussion on Timeout Expired - Same query working for months within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> We are trying to troubleshoot a complex issue with SQL server 2000. We have been using an *off the ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 08:45 PM
=?Utf-8?B?bWtzY2h1bHR6?=
 
Posts: n/a
Default Timeout Expired - Same query working for months

We are trying to troubleshoot a complex issue with SQL server 2000. We have
been using an *off the shelf* application for the last 6 months that is used
for portfolio management. The application is written in ASP and the database
is SQL 2000.

One of the screens in the application displays a list of projects that meet
certain criteria; all projects that they have rights to and are still open.
A few days agao, we started receiving the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e31'
[Microsoft][ODBC SQL Server Driver]Timeout expired

I was able to capture the query being executed in SQL by logging the rs
source to a file before it executes. I can run this query in Query Analyzer
and it will run taking about 40 seconds. The timeout on the connection
object is 30 seconds, which (I would think) explains the timeout error. The
strange thing is, before we experienced these timeout issues, the query never
took longer than 5 seconds to execute and display the results in IE.

As a test, I restored a copy of the DB that was about 4 days old. I was
able view the same page in under 5 seconds. When I use query analyzer to run
the query (on the 4 day old DB) it takes roughly 30 seconds. I'm not sure
why there is such a descrepency in the execution time between ADO and QA.

I compared the number of rows on each of the table referenced in the query
and todays DB have no more than 40 rows than the one that is 4 days old. Not
enough (in my opinion) to be causing the query to take 10+ seconds longer in
QA. Here are the DB hardware specs below:

Model: HP ProLiant DL580 G2
Memory: 2GB
CPU: 4 X Intel Xeon 2.8 GHz
Storage: 60 GB

I have gone as far as extracting the data from each of the tables referenced
in the query, dropping the table, recreating the tables, and repopulating the
tables only to see the same results.

Does anyone have any other ideas on what may be causing this or how I can go
about troubleshooting the error?

Thank you!

-- Mark
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 08:46 PM
Uwa Agbonile [MSFT]
 
Posts: n/a
Default Re: Timeout Expired - Same query working for months

You might want to try rebuilding your indexes using DBCC REINDEX

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Regards,
Uwa Agbonile[MSFT]

"mkschultz" <mkschultz@discussions.microsoft.com> wrote in message
news:56205E51-BBE0-4517-B1AB-EAE94EA09C6B@microsoft.com...
> We are trying to troubleshoot a complex issue with SQL server 2000. We

have
> been using an *off the shelf* application for the last 6 months that is

used
> for portfolio management. The application is written in ASP and the

database
> is SQL 2000.
>
> One of the screens in the application displays a list of projects that

meet
> certain criteria; all projects that they have rights to and are still

open.
> A few days agao, we started receiving the following error:
>
> Microsoft OLE DB Provider for ODBC Drivers error '80040e31'
> [Microsoft][ODBC SQL Server Driver]Timeout expired
>
> I was able to capture the query being executed in SQL by logging the rs
> source to a file before it executes. I can run this query in Query

Analyzer
> and it will run taking about 40 seconds. The timeout on the connection
> object is 30 seconds, which (I would think) explains the timeout error.

The
> strange thing is, before we experienced these timeout issues, the query

never
> took longer than 5 seconds to execute and display the results in IE.
>
> As a test, I restored a copy of the DB that was about 4 days old. I was
> able view the same page in under 5 seconds. When I use query analyzer to

run
> the query (on the 4 day old DB) it takes roughly 30 seconds. I'm not sure
> why there is such a descrepency in the execution time between ADO and QA.
>
> I compared the number of rows on each of the table referenced in the query
> and todays DB have no more than 40 rows than the one that is 4 days old.

Not
> enough (in my opinion) to be causing the query to take 10+ seconds longer

in
> QA. Here are the DB hardware specs below:
>
> Model: HP ProLiant DL580 G2
> Memory: 2GB
> CPU: 4 X Intel Xeon 2.8 GHz
> Storage: 60 GB
>
> I have gone as far as extracting the data from each of the tables

referenced
> in the query, dropping the table, recreating the tables, and repopulating

the
> tables only to see the same results.
>
> Does anyone have any other ideas on what may be causing this or how I can

go
> about troubleshooting the error?
>
> Thank you!
>
> -- Mark



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com