-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wxWidgets 3.1.5 and wxDatabase and ODBC #27
Comments
Hi Please find below the content of the test.conf file I used last for testing. You'll notice that the only one uncommented is the TDS via ODBC ;SQLite3 via ODBC ;Access via ODBC ;SQLite3 direct ;[PostgreSQL] ;[MySQL] ;TDS via ODBC ;TDS direct (see freetds.conf) I hope this helps Andrew |
My apologies, the active string in the config I sent yesterday was for TDS direct and [ODBC] was partially commented out. For TDS via ODBC it should read as follows;TDS via ODBC
|
Good day! Tell me how to use ODBC correctly with MS SQL server? I am using wxWidgets 3.1.5 and wxDatabase. The wxDatabaseApp.cpp example builds fine. I am trying to change it to work with ODBC, but looking at the source code in the CodeBlocks project, I see that the wxUSE_DATABASE_ODBC preprocessor directive is not set. And the code is copied without ODBC support. Also how to properly link the wxDatabase library to the new project? Sorry for the silly questions, not strong enough in C ++ yet.
![cmake](https://user-images.githubusercontent.com/41345806/140320800-da344166-2013-4ff8-a9a4-9229779b2eee.jpg)
![codeblocks](https://user-images.githubusercontent.com/41345806/140320822-8f5b1ddf-8219-4f7b-80cb-ccfda085ec0d.jpg)
I am trying to connect to MS SQL server using the following connection string
pDatabase = GetDatabase ("[ODBC] \ nConnection = DRIVER = SQL Server; SERVER = 10.9.1.50; DATABASE = apacs24ms; UID = user; PWD = password;");
The text was updated successfully, but these errors were encountered: