|
-
Jun 19th, 2006, 12:16 PM
#1
Thread Starter
New Member
VB.NET 2005 - SQL Connection Problem - Find Network Status?
I am building a database application which runs on laptops in vehicles. The idea is that the user fills out a form while on the road, it is cached locally, and then sent to the DB (MySQL) over the wireless network when the user returns to the site.
I have the program try to connect to the server every 10 seconds.
The problem I am having is:
1) when the vehicle leaves the site, with the program running, it thinks it can connect (and tries, and errors) even if there is no network connection
2) if I start the program in the vehicle while offsite, and then return and the network connects, the program still sees no network and won't connect.
I am using Microsoft ODBC Data Control and MySQL Connector/ODBC. Is this a problem with the drivers, or do I just need to call some Windows function to tell if the network is connected? How do I do this?
Any help is greatly appreciated.
Thanks,
Jason
-
Jun 19th, 2006, 04:03 PM
#2
Re: VB.NET 2005 - SQL Connection Problem - Find Network Status?
You need to either ping the server or try to connect to some intranet page, send it a request and test for the proper (whatever you've written that page to respond with) return.
The most difficult part of developing a program is understanding the problem.
The second most difficult part is deciding how you're going to solve the problem.
Actually writing the program (translating your solution into some computer language) is the easiest part.
Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.
Please Help Us To Save Ana
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|