Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.7.0
Description
The SQL QODBC driver is unable to connect to the SQL Server database and it throws the following error:
`DB connection failed with: QSqlError("0", "QODBC: Unable to connect", "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, IM002")`
To reproduce the issue:
- Create a test database with Microsoft SQL Server.
- Ensure that your database accepts SQL Server and Windows Authentication mode.
- Edit the values in the attached example project to match your database information and user credentials.
- Run the attached example project.
Note: it works in Qt 6.6.3 and earlier versions.
Attachments
Issue Links
- duplicates
-
QTBUG-124616 QSqlDatabase.open() error
- Closed
-
QTBUG-123478 regression: ODBC QSqlDatase::record() broken
- Closed