Print Page | Close Window

I want to be able to detect if the database is available BEFORE showing my login

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=217
Printed Date: 01-May-2025 at 2:29am


Topic: I want to be able to detect if the database is available BEFORE showing my login
Posted By: Customer
Subject: I want to be able to detect if the database is available BEFORE showing my login
Date Posted: 12-Jul-2007 at 3:59pm
I'm new to IdeaBlade so bare with me if this seems basic. I'm developing an application that I want to provide Offline functionality. I want to be able to detect if the database is available BEFORE showing my login. If it's not available I want to load the offline data, otherwise I want to continue on using the connected database.



Replies:
Posted By: IdeaBlade
Date Posted: 12-Jul-2007 at 4:00pm

Several other options -

  • The .NET class NetworkInterface GetIsNetworkAvailable() method can tell you if any network connection is available.
  • The IdeaBlade.Util.HttpFns.PingServer() method can be used to test if the server is available.  This method has also been tweaked a bit for the 3.5.0 release coming next week to better identify availability conditions.

A Login is required before calling CheckDataSourceKey as a security precaution.  I guess it could be argued either way as to whether this is wise, but that's the way it works now.




Print Page | Close Window