Microsoft KB Archive/172695: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
Line 63: | Line 63: | ||
== CAUSE == | == CAUSE == | ||
The Visual FoxPro ODBC driver incorrectly adds the entry | The Visual FoxPro ODBC driver incorrectly adds the entry "DSN=" to the file DSN. | ||
</div> | </div> | ||
Line 70: | Line 70: | ||
== RESOLUTION == | == RESOLUTION == | ||
To correct this problem, remove the | 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.<br /> | ||
<br /> | <br /> | ||
Be aware that every time this DSN entry is configured using the ODBC Data Source Administrator, the .dsn file is rewritten along with the | 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.<br /> | ||
<br /> | <br /> | ||
Some applications save the DSN information (including the | 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. | ||
</div> | </div> |
Latest revision as of 11:06, 21 July 2020
Article ID: 172695
Article Last Modified on 10/15/2003
APPLIES TO
- Microsoft Visual FoxPro 5.0 Standard Edition
- Microsoft Visual InterDev 1.0 Standard Edition
This article was previously published under Q172695
SYMPTOMS
When trying to configure a Visual FoxPro file DSN a message similar to the following appears:
When trying to make a connection to a Visual FoxPro database with a file DSN the following message appears:
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 has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This has been corrected in Visual FoxPro 5.0a.
MORE INFORMATION
This problem is known to occur in the Visual FoxPro ODBC Driver versions 5.00.00402 and 5.00.00412.
Additional query words: 80004005
Keywords: kberrmsg kbbug kbfix kbprb KB172695