Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-124781

The SQL QODBC driver is unable to connect to the SQL Server database.

    XMLWordPrintable

Details

    • All

    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:

      1. Create a test database with Microsoft SQL Server.
      2. Ensure that your database accepts SQL Server and Windows Authentication mode.
      3. Edit the values in the attached example project to match your database information and user credentials.
      4. Run the attached example project.

       

      Note: it works in Qt 6.6.3 and earlier versions.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              chehrlic Christian Ehrlicher
              mahdi.belila Mehdi Belila
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes