If IsSQLServerAvailable(strCn) Then Code works fine, Only very minor issue, above should be IsDBServerAvailable(strCn) Happy holidays!