By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 2,324 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

Determine connection state to enable offline capabilities

P: n/a
Hi there,

I developed an application that reeds configuration settings from a central
database.
Whenever the dataset is read, it's also saved as a local XML file on the
machine.
Whenever the central server is unavailable, the local file is used to enable
offline working.

I would like to now what the fastest method is to determine connection
state.
Trying to open the database connection and waiting for the exception to be
thrown does not seem to be the best way?!

Maybe pinging the central server could be faster and better?!
But how can I do that from Visual Basic .NET?

Can anybody help me out?!

Best regards, Philippe
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

http://msdn.microsoft.com/library/de...dunplugged.asp

Ken
---------------------
"Rubbrecht Philippe" <ph****************@ugine-alz.arcelor.com> wrote in
message news:OF**************@TK2MSFTNGP12.phx.gbl...
Hi there,

I developed an application that reeds configuration settings from a central
database.
Whenever the dataset is read, it's also saved as a local XML file on the
machine.
Whenever the central server is unavailable, the local file is used to enable
offline working.

I would like to now what the fastest method is to determine connection
state.
Trying to open the database connection and waiting for the exception to be
thrown does not seem to be the best way?!

Maybe pinging the central server could be faster and better?!
But how can I do that from Visual Basic .NET?

Can anybody help me out?!

Best regards, Philippe

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.