Unix Technical Forum

SQL server 2000 timeout

This is a discussion on SQL server 2000 timeout within the SQL Server forums, part of the Microsoft SQL Server category; --> I have been trying to do a query(view) in Enterprise Manger and Query Analyzer with a timeout result everytime. ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-29-2008, 08:49 PM
Brad
 
Posts: n/a
Default SQL server 2000 timeout

I have been trying to do a query(view) in Enterprise Manger and Query
Analyzer with a timeout result everytime. In EM in happens in about
30 seconds and in QA it happens in about 45 seconds.

I am running the query directly on a W2003SBS server with SQL Server
2000 (V 8.00.2039 )running on the server.

The message is simply
[Microsoft][ODBC SQL Server Driver]Timeout expired

I have set all the time out properties I have seen and that have been
mentioned in these forums to no avail.

I have tried rewriting several of these queries also to no avail.

I am working with a database of 140 million records and have indexed
all the pertinent fields.

I have seen some info up here about a bug in SQL 2000 that impacts EM
and not QA (Q247070), but I can't QA to work either. I seem to have
no impact on the length of the timeout. The query is not that
complicated, but does go against 140M records. I should be able to
set thetimeout longer to let this run.

Any ideas.

Thanks,
Brad
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-29-2008, 08:49 PM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL server 2000 timeout

Brad (bmeyynospamnospam@bmegroup.com) writes:
> I have been trying to do a query(view) in Enterprise Manger and Query
> Analyzer with a timeout result everytime. In EM in happens in about
> 30 seconds and in QA it happens in about 45 seconds.


I don't think the timeout in Enterprise Manager is controllable.

In Query Analyzer you set it under Tools->Options->Connection->Query Timeout
(in seconds). By default it's 0, which means forever, so you would only
get a timeout if someone has changed it.

If the view refers to remote tables, you could get a timeout for the
remote part of the view, but this timeout is by default 10 minutes.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-29-2008, 08:50 PM
Cimode
 
Posts: n/a
Default Re: SQL server 2000 timeout

You need to do some tuning...

Erland Sommarskog wrote:
> Brad (bmeyynospamnospam@bmegroup.com) writes:
> > I have been trying to do a query(view) in Enterprise Manger and Query
> > Analyzer with a timeout result everytime. In EM in happens in about
> > 30 seconds and in QA it happens in about 45 seconds.

>
> I don't think the timeout in Enterprise Manager is controllable.

It is controllable through EM...Server Property box --> connexions tab
-->Request timeout in ms...
> In Query Analyzer you set it under Tools->Options->Connection->Query Timeout
> (in seconds). By default it's 0, which means forever, so you would only
> get a timeout if someone has changed it.
>
> If the view refers to remote tables, you could get a timeout for the
> remote part of the view, but this timeout is by default 10 minutes.



> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/pro...ads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodinf...ons/books.mspx


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-29-2008, 08:50 PM
Madhivanan
 
Posts: n/a
Default Re: SQL server 2000 timeout


http://vyaskn.tripod.com/watch_your_timeouts.htm
http://vyaskn.tripod.com/sql_odbc_timeout_expired.htm

Madhivanan


Cimode wrote:
> You need to do some tuning...
>
> Erland Sommarskog wrote:
> > Brad (bmeyynospamnospam@bmegroup.com) writes:
> > > I have been trying to do a query(view) in Enterprise Manger and Query
> > > Analyzer with a timeout result everytime. In EM in happens in about
> > > 30 seconds and in QA it happens in about 45 seconds.

> >
> > I don't think the timeout in Enterprise Manager is controllable.

> It is controllable through EM...Server Property box --> connexions tab
> -->Request timeout in ms...
> > In Query Analyzer you set it under Tools->Options->Connection->Query Timeout
> > (in seconds). By default it's 0, which means forever, so you would only
> > get a timeout if someone has changed it.
> >
> > If the view refers to remote tables, you could get a timeout for the
> > remote part of the view, but this timeout is by default 10 minutes.

>
>
> > Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
> >
> > Books Online for SQL Server 2005 at
> > http://www.microsoft.com/technet/pro...ads/books.mspx
> > Books Online for SQL Server 2000 at
> > http://www.microsoft.com/sql/prodinf...ons/books.mspx


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 07:26 AM.


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