PRB: ODBC Connections Must Be Opened With SQL_DRIVER_NOPROMPT

Last reviewed: October 10, 1997
Article ID: Q167745
The information in this article applies to:
  • Microsoft Transaction Server, version 1.0

SYMPTOMS

ODBC connections not opened with the SQL_DRIVER_NOPROMPT are rejected by Microsoft Transaction Server. This is because a Transaction Server component cannot cause an ODBC logon dialog box to be displayed. Specifying SQL_DRIVER_NOPROMPT means that if the connection information is incorrect, you will receive an error. If you are using a data access library, it must be capable of specifying SQL_DRIVER_NOPROMPT when it connects to the ODBC driver.

RDO and ADO allow you to specify SQL_DRIVER_NOPROMPT, while DAO does not (unless you are using ODBCDirect).

If you are using Visual C++ and the MFC ODBC classes, you must use CDatabase::OpenEx and specify the noOdbcDialog option to open your database connections. Using CDatabase::Open causes MFC to use SQL_DRIVER_COMPLETE instead of SQL_DRIVER_NOPROMPT, so CDatabase::Open always fails.

STATUS

This behavior is by design.

MORE INFORMATION

For more information, visit the following sites on the World Wide Web:


Additional query words: Open Database Connectivity
Keywords : kbinterop TSrvODBC
Technology : ODBC
Version : 1.0
Platform : WINDOWS
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: October 10, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.