try{
数据库操作代码
}
catch(_com_error e)
{
     if(连接断开)//这儿怎样判断异常是因为“连接失败”
         重新连接SQL数据库
}
我使用str = (char*)e.Description();时,返回的是“连接失败”