Questions tagged [cdatabase]

16 questions
-2
votes
2 answers

Handle login failure with CDatabase and SQL Server, SQLState 28000 and SQL server error 18456

I have a SQL Server and ODBC to connect to this server in C++. I am using the CDatabase class and the openEx method for the connection. Here a bit of my code: inline void openConnection() { try { if (!database.IsOpen()) { …
1
2