Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Lost connectivity with database from PocketPC

Posted on 2011-03-22
4
Medium Priority
?
657 Views
Last Modified: 2013-12-27
Hi,

We have an SmartDevice application, build in VB.net 2005 to manage inventory in a huge warehouse. The software connect to a SQL Server 2000 database upon entering any program's functionnality. But after a few minutes of idle, the database connection drop by itself, even if the PocketPC does not fall in sleep mode. So the operator have to get out of the current menu and re-enter it (the database connection is re-established in the form's Load method).

Any idea why the database connection drop like that? How can I fix this?

thanks for your time and help
0
Comment
Question by:Dominic34
[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
  • 2
  • 2
4 Comments
 
LVL 10

Expert Comment

by:kdwood
ID: 35192118
Dominic,

Can you provide the following details:

1.  What type of Smart Devices are you using?
2.  Are your Smart Devices wireless?
3.  Are you connecting to an SQL 2000 server?  If so, what method are you using to connect?

Regards,

Keith
0
 

Author Comment

by:Dominic34
ID: 35192272
1. Those are Teklogix Workabout Pro G3 and Symbol MC9090 running Windows Mobile 5.0
2. Yes, wireless
3. yes, SQL 2000. using SQLClient.SQLConnection method:

oCnn = New SqlClient.SqlConnection
            With oCnn
                .ConnectionString = "Server=" & ServerName & ";Database=" & DBName & ";" & _
                                    "User ID=" & UserName & ";Password=" & Password & ";" & _
                                    "Trusted_Connection =" & Trusted
                .Open()
            End With
0
 
LVL 10

Accepted Solution

by:
kdwood earned 2000 total points
ID: 35198478
Dominic,

A few questions and things to consider:

1.  Double check to make sure that hibernate/powersave modes are turned off and/or not affecting the wireless interface.
2.  Is this a new implementation or has this system been in place for a while and just the problem is now showing up?
3.  Is it possible that your wireless access points or routers are configured to drop idle connections?
4.  From a design standpoint, we open and close database connections as needed in our code.  We abandoned trying to keep connections open, especially on wireless devices where coverage varies and signal interference can occur.  Some will argue that there is a performance hit to this approach, however, we did not see any visible performance loss and our applications are in fact more reliable.

Hope this helps,

Keith
0
 

Author Comment

by:Dominic34
ID: 35200501
1. Hibernate isn't enabled Nor is sleep mode.
2. It's an old application that run very well on other warehouses. This particular warehouse is new, PocketPC are new also
3. AP are configured exactly like the AP's at the other warehouses
4. That's a thing I was considering also, to modify the application to reconnect each time at the database on every StoredProc calls... would be a bit time consuming to do, but would fix the problem I guess...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Preface: This article is part of a series focused on cross platform mobile app development (specifically Android and iOS) using the Alloy framework and Titanium Studio made by Appcelerator (https://www.appcelerator.com/). This article presumes a wor…
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do.  Apple is very particular when they review appstore submissions.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

636 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