Article ID: 326548 - Last Review: September 16, 2003 - Revision: 3.1 HOW TO: Use Jet OLE DB Provider 4.0 to Connect to ISAM DatabasesThis article was previously published under Q326548 On This PageSUMMARY
This article describes how to use Jet OLE DB Provider 4.0 to connect to various external databases through installable ISAM drivers. Connection strings are provided for opening each ISAM database. NOTE: The code in this article assumes that you have created an ADO Connection object: cnn, and an ADO RecordSet object: rst. Open ExcelThe following code opens an Excel ISAM database:For additional information about connecting to a Microsoft Excel spreadsheet, click the article number below to view the article in the Microsoft Knowledge Base: 295646
(http://support.microsoft.com/kb/295646/EN-US/
)
HOWTO: Transfer Data from ADO Data Source to Excel with ADO
Open dBASEThe following code opens a dBASE ISAM database. If a dBASE file (for example, dBaseFile.dbf) is located at c:\somepath, where C is the drive, and where somepath is the folder that contains dBaseFile.dbf, as follows:Open Lotus 1-2-3The following code opens a Lotus 1-2-3 ISAM database:Open ParadoxThe following code opens a Paradox ISAM database. If a Paradox 5.0 file (for example, PdxFile.db) is located at c:\somepath, where C is the drive, and where somepath is the folder that contains PdxFile.db, as follows:NOTE: Not all versions of Paradox are supported by the Jet ISAM. For additional information, click the article number below to view the article in the Microsoft Knowledge Base: 230126
(http://support.microsoft.com/kb/230126/EN-US/
)
ACC2000: Using Paradox Data with Access 2000 and Jet
Open TextIf a text file (for example, TestFile.txt) is located at c:\somepath, where C is the drive, and where somepath is the folder that contains TestFile.txt, as follows:The Text ISAM permits you to handle multiple text file formats. You cannot define all characteristics of a text file through the connection string. For example, if you want to open a fixed-width file, or you want to use a delimiter other than the comma, you must specify all these settings in a Schema.INI file. For more information about about Schema.INI files, visit the Microsoft Developer Network (MSDN) Library at the following Web site: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcjetschema_ini_file.asp
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/odbcjetschema_ini_file.asp)
APPLIES TO
| Article Translations
|

Back to the top
