dbTalk Databases Forums  

Stopping queries from timing out

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Stopping queries from timing out in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ian
 
Posts: n/a

Default Stopping queries from timing out - 04-01-2005 , 11:31 AM






Any idea how I can stop a query from timing out?

I am running a simple but long query on a remote Progress table using DTS,
in order to pull data into a SQL Server Datamart, using a datapump
transformation task in my script.

However, to limit the amount loaded, I am trying to retrieve maximum and
minimum dates from the Progress table, which has over a million records.

The query is of this type:

Select Max(RecordDate), Min(RecordDate) from [Table]

But I keep getting timeout errors. I have increased the priority of the task
to high and put maximum values in the timeout fields on the remote
connection, but it still times out. Any ideas how to stop this happening?

Reply With Quote
  #2  
Old   
Alejandro Mesa
 
Posts: n/a

Default RE: Stopping queries from timing out - 04-01-2005 , 01:37 PM






Does table [Table] have an index by [RecordDate]?, if not, try creating one.


AMB


"Ian" wrote:

Quote:
Any idea how I can stop a query from timing out?

I am running a simple but long query on a remote Progress table using DTS,
in order to pull data into a SQL Server Datamart, using a datapump
transformation task in my script.

However, to limit the amount loaded, I am trying to retrieve maximum and
minimum dates from the Progress table, which has over a million records.

The query is of this type:

Select Max(RecordDate), Min(RecordDate) from [Table]

But I keep getting timeout errors. I have increased the priority of the task
to high and put maximum values in the timeout fields on the remote
connection, but it still times out. Any ideas how to stop this happening?

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.