473,396 Members | 2,055 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.

Connectoon timeout

I am not able to modify the connection timeout time using following connection string
"Provider=SQLOLEDB.1;Persist Security Info=False;PWD=PWD;User ID=UID;Initial Catalog=DB;Data Source=servername;Connect Timeout=60"
or
"Provider=SQLOLEDB.1;Persist Security Info=False;PWD=PWD;User ID=UID;Initial Catalog=DB;Data Source=servername;Connect Timeout=10"

in both the above cases the timeout happens in 30 seconds.
can some one help
Oct 15 '09 #1
4 2945
Delerna
1,134 Expert 1GB
Hmm, I have no issue adjusting timeouts but I do it this way
Expand|Select|Wrap|Line Numbers
  1. cnn.Open("Provider=SQLOLEDB.1;Persist Security Info=False;PWD=PWD;User ID=UID;Initial Catalog=DB;Data Source=servername");
  2. cnn.CommandTimeout = 60;
  3.  
Have you done any research on what "ConnectTimeout" actually does?
I have a feeling that it is a timeout for the actual connection creation only.
Or is that what you are trying to do and I have totally missunderstood the question
Oct 15 '09 #2
Thanks for msg
The method pointed out by you is also not working I had tries that earlier.
The ConnectTimeout is a property that forces any quarry run on the connection to timeout or terminate if the server does not respond in the given timeout parametere - in this cas 60 secs (for this particualar querry). When u re-send the querry the ConnectTimeout is resetted and times out this querry again if there is no response from server in 60secs.
Regards
Oct 16 '09 #3
I may be wrong about the defination I just posted. let me chek and post again
Oct 16 '09 #4
you are right
"ConnectTimeout" it is a timeout for the actual connection creation only.
the command for querry timeout is
cnn.CommandTimeout = 60;
This is working fine,
Thanks it was only after ur msg that I could resolve it.
Oct 16 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: E Sullivan | last post by:
I am having a time out issue when multiple users are accessing the server. This time out does not happen all of the time. My understanding is that the time out value is actually set in two places....
12
by: Geigho | last post by:
Setting session timeout in web.config file does not seem to have any effect. Any explanation or suggestion will be appreciated.
2
by: Greg Decos | last post by:
I am using forms authentication using a FormsAuthenticationTickets set to expire in 30 minutes and the ticket is added to the collection of cookies. I am not sure where the following values are...
4
by: DavidS | last post by:
First: There are several ways to confuse one regarding session timeout. (1) web.config - <sessionState timeout="20"> (2) IIS Manager | Internet Information Services | ServerNode | Default Web Site...
4
by: UJ | last post by:
I have a page where the user can upload a video file. As you can guess, this may take a while. Is there a way I can change the session timeout for just this one page? I would also want to change...
22
by: Nick Craig-Wood | last post by:
Did anyone write a contextmanager implementing a timeout for python2.5? I'd love to be able to write something like with timeout(5.0) as exceeded: some_long_running_stuff() if exceeded:...
25
by: =?Utf-8?B?RGF2aWQgVGhpZWxlbg==?= | last post by:
I tried: <sessionState timeout="1"> </sessionState> bounced IIS, and after 1 minute still had a session. ??? -- thanks - dave
5
by: Masso | last post by:
Hallo to the group, my question is this: where i have to set timeout in a web application? If i set into sessionState with property Timeout="60", after 20 minutes the session is over. Always...
2
by: JimLad | last post by:
Hi, I've got a very basic asp.net page that accesses a very slow db query and siplays to screen. I'm hitting a timeout aftre about 3.5 to 4.5 minutes - seems to be variable. SQL connection...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.