473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

SQL Client Timeout errors

RSH
Hi,

I have an application that creates a call to a SQL Server stored proc. The
stored proc can take a while to perform the necessary tasks, in some cases
as long as 12 minutes. I am using the SQLClient in .Net and I am getting
SQL timeout errors at around 30 seconds. I have tried adding
"ConnectionTimeout=720" to the connection string but it appears to have no
effect.

What can I do to keep the connection from timing out during these longer
processes?

Thanks a ton!
Ron
Jun 14 '06 #1
3 4966
RSH,
It's not your connection that's timing out, its your SqlCommand.
Increase the CommandTimeout.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"RSH" wrote:
Hi,

I have an application that creates a call to a SQL Server stored proc. The
stored proc can take a while to perform the necessary tasks, in some cases
as long as 12 minutes. I am using the SQLClient in .Net and I am getting
SQL timeout errors at around 30 seconds. I have tried adding
"ConnectionTimeout=720" to the connection string but it appears to have no
effect.

What can I do to keep the connection from timing out during these longer
processes?

Thanks a ton!
Ron

Jun 14 '06 #2
Try to set it at SQL server side and see.

chanmm

"RSH" <wa*************@yahoo.com> wrote in message
news:O0**************@TK2MSFTNGP02.phx.gbl...
Hi,

I have an application that creates a call to a SQL Server stored proc. The stored proc can take a while to perform the necessary tasks, in some cases
as long as 12 minutes. I am using the SQLClient in .Net and I am getting
SQL timeout errors at around 30 seconds. I have tried adding
"ConnectionTimeout=720" to the connection string but it appears to have no
effect.

What can I do to keep the connection from timing out during these longer
processes?

Thanks a ton!
Ron

Jun 14 '06 #3
RSH
Thanks! That did the trick.

Ron

"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:04**********************************@microsof t.com...
RSH,
It's not your connection that's timing out, its your SqlCommand.
Increase the CommandTimeout.

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"RSH" wrote:
Hi,

I have an application that creates a call to a SQL Server stored proc.
The
stored proc can take a while to perform the necessary tasks, in some
cases
as long as 12 minutes. I am using the SQLClient in .Net and I am getting
SQL timeout errors at around 30 seconds. I have tried adding
"ConnectionTimeout=720" to the connection string but it appears to have
no
effect.

What can I do to keep the connection from timing out during these longer
processes?

Thanks a ton!
Ron

Jun 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Cath B | last post by:
I am pretty sure I am getting a command timeout when execute a SQL procedure that has an output parameter. The code below is in an asp page that is called using RSGetASPObject. I want to be able...
2
by: Dicky Cheng | last post by:
Hi, I am using .net remoting technology. I set up a .net remoting client and server in IIS. When the client calls the server, the server will run a long duration method (30-60seconds). I have a...
2
by: Dan | last post by:
All, I have a Web Service that validates a piece of data. However, the database that the data comes from is mamouth. So, it may take a long time for the validation query to complete. ...
4
by: A.M-SG | last post by:
Hi, How can I increase the HTTP Timeout value at the client side? Thank you, Alan
8
by: Brian Tkatch | last post by:
Server: DB2/SUN 8.1.6 Client: DB2 Connect Personal Edition (No 11) <URL:ftp://ftp.software.ibm.com/ps/products/db2/fixes2/english-us/db2winIA32v8/fixpak/FP11_WR21365/FP11_WR21365_CONPE.exe> ...
1
by: a.r.austin | last post by:
Hello, I am trying to download a few files one after another from a remote server. Problem is that I don't know how to, or if I am able at all, set a time out for download. I don't want to time...
13
by: =?Utf-8?B?S2VzdGZpZWxk?= | last post by:
Hi Our company has a .Net web service that, when called via asp.net web pages across our network works 100%! The problem is that when we try and call the web service from a remote machine, one...
9
by: timor.super | last post by:
Hi group, I've written a client/server application, using the dotnet sockets. In my server, I have a thread waiting for messages with : ret = currSocket.Receive(buffer, 1024,...
5
by: Nash | last post by:
Hi, I am using asynchronous client/server communication. Whenever a client is getting connected to the server the correspoinding socket is added to the list. I want to validate whether the client...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.