Solved

SSIS how to set query timeout

Posted on 2012-03-14
1
4,355 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 42

Accepted Solution

by:
Eugene Z 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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

730 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