Microsoft KB Archive/243809

= FIX: Recordset DTC Does Not Recognize Data Connection; Connection Information Appears in Red =

Article ID: 243809

Article Last Modified on 8/7/2007

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q243809



SYMPTOMS
After you install Visual Studio 6.0 Service Pack 3, Recordset Design-Time Controls (DTCs) may no longer recognize data connections that do not use an OLE DB connection string. This includes data connections that use Data Link (UDL) files or ODBC Data Source Names (DSNs). You may encounter the following behaviors:
 * All data sources can be accessed through the Data Tools (that is, Data View).
 * In the Recordset DTC's Data Connections drop-down list box, only data connections that use an OLE DB connection string for connection information appear.
 * When a Recordset DTC uses an existing connection, if you change the Data Connection properties to use an ODBC DSN or a Data Link file, the Recordset DTC Connection properties appear in red.
 * Connection properties for Recordset DTCs for projects that were created before applying Visual Studio 6.0 Service Pack 3 appear in red.



CAUSE
DTCs require more information than is added when you select the Use ODBC Data Source Name option. This connection information, which provides information to the Recordset DTC, is added to a binary file called the Dataenvironment.asa.



RESOLUTION
You must use an OLE DB connection string in order for the Recordset DTC to recognize the data connection. This behavior does not occur until you install Visual Studio 6.0 Service Pack 3.

Use the following steps to create an OLE DB connection string:
 * 1) In the Project Explorer window (under Global.asa/DataEnvironment), right-click the data connection, and then click Properties.
 * 2) On the General tab, click Use Connection String, and then click Build.
 * 3) Follow the instructions to build your OLE DB connection string.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 5.

For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That a Visual Studio Service Pack Is Installed

To download the latest Visual Studio service pack, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx

