Article ID: 195236 - Last Review: July 1, 2004 - Revision: 4.3 How To Get ADO Default Connection InformationThis article was previously published under Q195236 SUMMARY
Default connection properties might differ by driver. In your application,
it might be important to obtain the ADO version number because you might
need to know whether the driver uses server-side or client-side cursors,
supports transactions, or opens tables as read-only by default.
The following sample allows you to determine the default connection properties for a driver. It creates a DSN-less connection to an existing driver and displays the default connection properties for that driver. To use this sample code, you must have Microsoft Data Access Components (MDAC) version 2.x or later installed, which is included in the data components of Visual Studio 6.0 or can it be downloaded from the following Web site: http://msdn.microsoft.com/en-us/data/aa937729.aspx
(http://msdn.microsoft.com/en-us/data/aa937729.aspx)
MORE INFORMATION
Create and execute the following program, substituting the name of your
driver, server, and database in the 'lcConnString' variable:
REFERENCES
For definitions of the return values for Mode, State, IsolationLevel, and
CursorLocation, please see the include file Adovfp.h included with the
sample program Rs2Dbf.exe in the Microsoft Software Library. To download
Rs2Dbf.exe, please see the following article in the Microsoft Knowledge
Base:
192692
(http://support.microsoft.com/kb/192692/EN-US/
)
SAMPLE: Rs2dbf.exe Converting ADO 2.x Recordset to VFP Cursor
APPLIES TO
| Article Translations
|
Back to the top
