Solved

SSIS how to set query timeout

Posted on 2012-03-14
1
4,208 Views
Last Modified: 2012-04-19
I am running an stored proc using execute sql task. The package is set to run automatically using sql Agent. Sometimes I see query timeout error wen the package is run. How do I set the query time out? On the properties window It show 0 for timeout.

I am also running another sproc inside a script task (c# script) in the same package. How do I set the query time out for running this sproc in the script task?

Thanks.
0
Comment
Question by:patd1
1 Comment
 
LVL 42

Accepted Solution

by:
EugeneZ earned 500 total points
ID: 37721205
what is your sql server version\edition \sp ? make sure sp is fresh?

/from
http://social.msdn.microsoft.com/forums/en-US/sqlintegrationservices/thread/241ad5c5-e72c-4f59-8b19-cb944085a3a7 /

please clarify what one?
---

There are three timeouts:

General
Connect
Command

General should be the overall timeout for the connection.  Connect should be just for the connection.  If the connection hasn't been established by the timeout (or the default), it will stop trying to connect.  Command timeout is likely the timeout SSIS will wait for a command to complete

--
there is an example how to set

http://forums.teradata.com/forum/connectivity/sql-server-integration-services-ssis-and-timeout-errors

Switch to "Data Flow" tab (vs. Control Flow) and select the DataReader source. The Properties window will show CommandTimeout at the very top; it is set to 30 seconds by default. .

---
1

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
data stored like ????? in sql server column 19 54
Download ms sql express. 2 26
AD and SQL Server 2016 2 28
SQLCMD Syntax 2 13
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question