LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
tod tod is offline
external usenet poster
 
Posts: 114
Default 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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Handling #NUM! error Michel Khennafi Excel Worksheet Functions 1 February 26th 07 08:49 PM
MS-Excel and Complex Database Handling? Mike Excel Discussion (Misc queries) 2 May 18th 06 08:14 PM
Error Handling bw Excel Programming 3 June 20th 04 06:43 PM
Error handling V. Roe Excel Programming 2 February 27th 04 08:04 PM
Error Handling James Agostinho Excel Programming 1 January 30th 04 06:40 AM


All times are GMT +1. The time now is 05:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"