Hi, I am not sure if I can ask this question appropriately. I'm a novice in OleDB programming.
I'm now maintaining a piece of C++ code which uses OleDB to connect to SQL2k5. The program creates an OleDB connection to the SQL server and continously to execute SQL command via the connection without any problem until we get an OleDB error. Using
CDBErrorInfo::GetBasicErrorInfo() to get the error information, it shows that hrError = 0x80004005 and dwMinor = 0; and using CDBErrorInfo::GetAllErrorInfo() to get the other details of the error record, it gives me a description of "Connection failure". Now
could anyone please help to tell me what exactly does this error mean ? Does it mean the connection between my program and the SQL server has broken ? And how shall I handle/recover it in the code ? Should I just throw the existing connection away
and recreate new OleDB connection ?
Thank you very much
View Complete Post