KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q239949: PRB: 16-Bit Apps May Use 32-Bit DSNs if Duplicate DSNs Exist

Article: Q239949
Product(s): Open Database Connectivity (ODBC)
Version(s): 2.0,3.0,3.5
Operating System(s): 
Keyword(s): kbODBC kbODBC300 kbODBC350 kbODBC200 kbGrpDSVCDB kbGrpDSMDAC kbDSupport
Last Modified: 23-AUG-2001

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Open Database Connectivity, versions 2.0, 3.0, 3.5 
-------------------------------------------------------------------------------

SYMPTOMS
========

16-bit applications may use the 32-bit ODBC data source name (DSN) even though
use of the 16-bit ODBC is intended. The symptoms may vary, but unpredictable
results can occur like using the unintended driver or the DSN.

CAUSE
=====

This behavior occurs because the 16-bit Driver Manager uses the Odbc.ini file
for DSNs and the order in which the DSNs are present in the .ini file may
determine the one that is actually used. This only occurs if duplicate DSNs
exist in both the 16-bit and 32-bit environments. This will only impact 16-bit
applications, since the 32-bit ODBC does not use the 16-bit Odbc.ini file.

RESOLUTION
==========

Make sure that the names in the 16-bit ODBC environment and the 32-bit ODBC
environment are unique. Rename any duplicate DSNs and modify your applications
to use the updated names.

STATUS
======

This behavior is by design.

Additional query words:

======================================================================
Keywords          : kbODBC kbODBC300 kbODBC350 kbODBC200 kbGrpDSVCDB kbGrpDSMDAC kbDSupport 
Technology        : kbAudDeveloper kbODBCSearch kbODBC350 kbODBC300 kbODBC200
Version           : :2.0,3.0,3.5
Hardware          : x86
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.

Copyright Microsoft Corporation 1986-2002.