473,396 Members | 1,785 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.

Timeout issue when connection to SQL Server in Wireless environment

I am having problems with long timeouts when connecting to
or executing commands in SQL Server 2000 SP3. I am
writing an application that will be used on laptops within
an environment that is wireless. The application is
written in VB.NET using the SQL Server managed provider.

I have set the "Connect Timeout" parameter on the
connection string to 15 seconds and whenever I execute a
command, I set the CommandTimeout property to 15 seconds
on the command object.

When I open a connection where there is poor signal
strength or I am in a dead spot, I have timed the various
timeouts the Open method gives me on the connection to be
anywhere between 25 seconds to 70 seconds. Similiar
results with sending commands.

When I cannot open the connection I give the user the
ability to retry the operation that opens the database
connection after they have moved back into range. I
implemented this with a looping construct and messagebox
allowing the user to hit Retry or Cancel up to 5 tries
before it automatically cancels.

Sometime on the retry it will work, but sometimes the
second time through the loop to open the connection will
not work even if the laptop was moved back into range.

I am guessing that this behavior has to do with the
connection pooling combined with the fluctuating signal
strength and timing on the WiFi network. However, I have
been unable to find documentation or post in the
news/users groups that will help me with this issue. Any
help or experiences in this type of environment would be
appreciated.

Thanks,
Dave
Jul 20 '05 #1
1 7355
David Gamble wrote:
Sometime on the retry it will work, but sometimes the
second time through the loop to open the connection will
not work even if the laptop was moved back into range.


I don't know about what setting in Sql-Server or MSDE it depends on, but I
had exactly the same problem.

It was due to Persist Security Info property, apparently not supported. To
solve the problem, I ALWAYS set the connections string of the connection
object before opening the connection, even if the connectionstring had
already been set before previous connection attempt.

If you set the connection string with user and password, and you then print
the connectionstring (obtained from the connection object), it happens that
this string is different from the original string you inserted in the
property.
Sometimes, the PWD parameter has disappeared, even if Persist Security Info
was TRUE.
At the present, I don't know which setting of the server or the OleDb
provider I can work on to make this feature enabled or not.

Bye

Alberto
Jul 20 '05 #2

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

Similar topics

13
by: Patrick | last post by:
I understand that with IIS5.1 on Windows XP Professional SP1, I can 1) Either set under IIS Manager-> Any specific Virtual Directory-> Configuration->Options->ASP Script timeout for all pages...
1
by: Michael | last post by:
I am running a web server (IIS) on Windows 2003 SP 1. My ASP.NET C# applications run fine. However, my application is a combination of Classic ASP and C#. For some reason when you attempt to...
8
by: bdeviled | last post by:
I am deploying to a web environment that uses load balancing and to insure that sessions persist across servers, the environment uses SQL to manage sessions. The machine.config file determines how...
4
by: Nevyn Twyll | last post by:
I've been working on an asp.net application and everything's been great. But suddenly, whether I'm tyring to use a database on my own machine, or on my server, I'm getting a timeout when trying to...
3
by: Nils Magnus Englund | last post by:
Hi, I've made a HttpModule which deals with user authentication. On the first request in a users session, it fetches data from a SQL Server using the following code: using (SqlConnection...
8
by: Komandur Kannan | last post by:
We have a smart device application running on handhelds(Symbol MC9000G). The backend is Oracle and a middle tier web services development done in Vb.net. We use pessimistic Locking due to...
7
by: =?Utf-8?B?Sm9obiBTdGFnZ3M=?= | last post by:
Hello, Please read this all before giving an answer :) I'm doing some troubleshooting on a web application that my company wrote. It's written in asp.net 1.1. The error that the Event viewer...
1
by: =?Utf-8?B?QiBTaW5naA==?= | last post by:
Hi Scenario 1) Host - XP Laptop with internet connection using Sky Broadband Wireless Router Netgear DG834GT 2) MS Virtual Server 2005 - I have deployed an XP MS Virtual Server 2005 to act...
2
by: Zytan | last post by:
I just had the problem occur again, with NetworkStream.Write() doing its thing with a timeout... and it just sits and waits and waits and waits... it never times outs. So, I shut the server down...
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: 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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.