Solved

SSIS how to set query timeout

Posted on 2012-03-14
1
3,838 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now