Confirming a DB connection

Results 1 to 2 of 2

Thread: Confirming a DB connection

  1. #1
    Join Date
    Dec 1969

    Default Confirming a DB connection

    I am trying to work out how to establish in code if a database is available and if it is not test database 2 is available and send data there. When I used err object the err.description comes back blank if the 1st database does not exist.<BR><BR>e.g dbDSN<BR><BR>if err.number &#060;&#062;0 then<BR> response.write err.description<BR><BR>end if<BR>can anyone help

  2. #2
    Join Date
    Dec 1969

    Default RE: Confirming a DB connection

    if objconn.errors.count &#062; 0 then<BR>response.write "Db errors occured."<BR>end if<BR><BR>jw<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts