how do i know that a sql server exist and running, in my code i just used the recordset in vc++, if the sql server is down, system is giving an error , even the exception handling is not trapping that error, plese suggest some solution to this problem.