Question
Verifying a Database Connection
There has to be a easy way to do this. I use dreamweaver to
do all my ASP web development. I have a particular application that
I want to verify if my database connection is available and, if so,
display an appropriate message. Pretty simple I think but I can't
seam to figure it out how to do it.
I though maybe a simple "IF... THEN... ELSE..." maybe, such as
IF my_database is available
THEN write "The Database is available"
ELSE write "The Database is NOT available"
END IF
Does anyone know exactly what I need to write in order to do this? In case you need to know I'm connecting to a MS Access database.
Thanks!
I though maybe a simple "IF... THEN... ELSE..." maybe, such as
IF my_database is available
THEN write "The Database is available"
ELSE write "The Database is NOT available"
END IF
Does anyone know exactly what I need to write in order to do this? In case you need to know I'm connecting to a MS Access database.
Thanks!
