Print Page | Close Window

How do I check my db is running

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Database Discussion
Forum Description: Discussion and chat on database related topics.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9473
Printed Date: 29 March 2026 at 9:20am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How do I check my db is running
Posted By: kevinhann
Subject: How do I check my db is running
Date Posted: 02 February 2004 at 1:38pm

I often get complaints that my web sites are not working due to the access registry problem.

I want to build a page that will run on my unattended pc and send me an SMS message when the db fails.

Any ideas on the best way of checking that it is running? I have a few ideas but dont want to reinvent a common wheel.

Kevin

 

 




Replies:
Posted By: Mart
Date Posted: 02 February 2004 at 2:07pm
Do a On Error Resume Next at the top of the page. Below that do a simple query i.e. SELECT * FROM yourtable. Under that put something like this:

If err.Number <> 0 Then
'Send a SMS
End if


Posted By: kevinhann
Date Posted: 02 February 2004 at 2:54pm

doooahhh Angry

I was thinking of something more sophisticated but of course you're right thats all I need to do. Works fine.

 



Posted By: pmormr
Date Posted: 03 February 2004 at 6:52pm
it's cool... we all have those days where we are braindead... one day i tried to spell four (the number) 4our

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net