PRB: Visual FoxPro ODBC Driver Creates an Invalid File DSN

Last reviewed: August 13, 1997
Article ID: Q172695
The information in this article applies to:
  • Microsoft Visual FoxPro ODBC Driver, version 5.0
  • Microsoft Visual InterDev, version 1.0

SYMPTOMS

When trying to configure a Visual FoxPro file DSN a message similar to the following appears:

   General error: Invalid file dsn 'Windows\ODBC\Data Sources\MyData.dsn'

When trying to make a connection to a Visual FoxPro database with a file DSN the following message appears:

   [Microsoft][ODBC Driver Manager]Data source name not found and no
   default driver specified

CAUSE

The Visual FoxPro ODBC driver incorrectly adds the entry "DSN=" to the file DSN.

RESOLUTION

To correct this problem, remove the "DSN=" line from the .dsn file. This file, by default, is located in the "\Windows\ODBC\Data Sources" directory.

Be aware that every time this DSN entry is configured using the ODBC Data Source Administrator, the .dsn file is rewritten along with the "DSN=" line. This means that any time you modify this DSN entry using the ODBC Data Source Administrator, you must also remove the "DSN=" line.

Some applications save the DSN information (including the "DSN=") when an ODBC connection is made. Even after the original file DSN is corrected, problems still occur when these connections are used. To correct this problem, delete and re-create the connection.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

This problem affects the Visual FoxPro ODBC Driver version 5.00.00402 only.


Additional query words: 80004005
Keywords : FxinteropOdbc vfoxwin viodbc kberrmsg
Technology : kbInetDev
Version : WINDOWS:1.0,5.0
Platform : WINDOWS
Issue type : kbprb


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: August 13, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.