ACC: "Data Source Not Found, No Default Driver Specified" Error

Last reviewed: December 30, 1997
Article ID: Q95050
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1, 2.0

SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you are trying to attach a SQL Server table or trying to use a table that has already been attached, you may receive the following error message:

   Data source not found and no default driver specified.

CAUSE

You may have a missing, damaged, or incorrect ODBC.INI file.

Other situations may indirectly cause this error message. For more information, please see the following article here in the Microsoft Knowledge Base:

    ARTICLE-ID: Q102437
    TITLE:      ACC: Debugging & Troubleshooting Tips for Attached SQL
                Tables

RESOLUTION

Verify the following:

  • There is an ODBC.INI file in your WINDOWS subdirectory.
  • There is only one copy of the ODBC.INI file available on the computer you are using.
  • The entries in the ODBC.INI file are correct for the SQL database server to which you want to connect.

MORE INFORMATION

The contents of your ODBC.INI file should resemble the following:

   [ODBC Data Sources]
   MYSERVER=SQL Server
   YOURSRVR=SQL Server

   [MYSERVER]
   Driver=C:\WINDOWS\SYSTEM\SQLSRVR.DLL
   Description=SQL Server on server MYSERVER
   OemToAnsi=No
   Network=dbnmp3
   Address=\\MYSERVER\PIPE\SQL\QUERY

   [YOURSRVR]
   Driver=C:\WINDOWS\SYSTEM\SQLSRVR.DLL
   Description=SQL Server on server YOURSRVR
   OemToAnsi=No
   Network=dbnmp3
   Address=\\YOURSRVR\PIPE\SQL\QUERY

You will receive the error message if there is no section that refers to the SQL database server to which you are trying to attach or if any one of the following is true:
  • The [MYSERVER] section is missing.
  • The Driver= line is missing.
  • The .DLL file on the Driver= line is missing its .DLL extension.
  • The .DLL file is missing, damaged, or outdated.


Additional query words: kbtshoot
Keywords : OdbcOthr kberrmsg kbusage
Version : 1.0 1.1 2.0
Platform : WINDOWS
Hardware : x86
Issue type : kbprb
Solution Type : Info_Provided


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.