Error Handling when database not available
Here's my newbie questions o' the day:
I'm using ADO to connect to a SQL database. Here's my
connection string:
cn.Open "Driver={SQL
Server};Server=MyIPAddress;Database=DatabaseName;U ID=MyID;
PWD=MyPassword"
There may be times when the database is not available.
Currently it just gives an automation error. Is there a
way I can use code to first test for the availability of
the database?
tod
|