|
[QODBC-ALL] Troubleshooting - Data source name not found and no default driver specified
Posted by Jack - QODBC Support on 17 January 2018 02:27 PM
|
|||||||||||
Troubleshooting - Data source name not found, and no default driver specifiedProblem Description:
Overview
This article explains how to resolve the following ODBC error when connecting to QODBC Desktop, QODBC Online, or QODBC POS:
This error indicates that the ODBC Driver Manager could not locate the specified Data Source Name (DSN) or the required ODBC driver.
SymptomsYou may encounter this error in situations such as:
For example:
You are running QODBC on a terminal server and have configured a 64-bit DSN that points to a 64-bit DSN. QODBC works correctly in most scenarios:
However, when the same file is copied to another workstation, it does not work.
Solution:Cause 1: The data source (DSN) you are attempting to connect to does not exist on your machine.On Windows, data sources are created by the Microsoft ODBC Administrator. The available System data sources are listed in the System DSN tab. The User data sources available for the currently logged-on user are listed in the User DSN tab.
If you have copied your MS Excel file or MS Access file from another machine, ensure you have installed the QODBC driver and have added the DSN you are using on the source machine. Cause 2: The Application Does Not Have Permission to Access the DSNWindows stores ODBC Data Source Names in the registry. If the application is running under a different Windows account or a service account, it may not have permission to access the required DSN. Registry LocationsSystem DSN
User DSN
Resolution
Cause 3: 32-bit and 64-bit Architecture MismatchThe application architecture must match the architecture of the ODBC driver and DSN. Examples:
If the application attempts to use a driver with a different architecture, the Driver Manager may not locate the DSN and will return the IM002 error. Resolution
Cause 4: Incorrect DSN in the Connection StringThe connection string references a DSN that does not exist. Example:
If the actual DSN is named:
the connection will fail. ResolutionVerify that the DSN name in the connection string exactly matches the configured DSN. Cause 5: Excel Add-in Running Under a Different ContextIn some environments, particularly on Terminal Servers or Remote Desktop Services, an Excel Add-in may execute under a different user context than a standalone application. As a result, it may not have access to a User DSN that is available only to your Windows profile. Resolution
Additional Troubleshooting ChecklistBefore contacting support, verify the following: ✔ The DSN exists. ✔ The DSN name is spelled correctly. ✔ The application and QODBC have the same architecture (32-bit or 64-bit). ✔ The correct ODBC Administrator was used to create the DSN. ✔ The QODBC driver is installed. ✔ The Windows account has permission to access the DSN. ✔ The application is using the expected Windows user account. ✔ The connection string references the correct DSN. Additional InformationFor more information about this ODBC Driver Manager error, refer to Microsoft's documentation: [Microsoft][ODBC Driver Manager] Data source name not found, and no default driver specified If the issue persists after following the steps in this article, please contact Flexquarters Technical Support and include the following information:
Please refer to the link below for more details: [Microsoft][ODBC Driver Manager] Data source name not found, and no default driver specified
| |||||||||||
|
|
|||||||||||


