Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This used to work - Connecting a visual c++ program to a sql express database using ODBC. after working for months, I know get a timeout error when executing the open command (if(!m_pDB->Open(_T("CardServer2"), FALSE, FALSE, _T("ODBC;UID=NULL"))). I did a test connection in ODBC and it worked find, however when I try to execute the program - it times out with the error message: SQLState: S1 T00 SQL Server Error: 0. Have tried everything everything be uninstall - reinstall. As I said before, this used to work fine. Any ideas.
Posted

1 solution

you can try to set ConnectionTimeout before you Open your database.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900