The information in this article applies to:
SUMMARYICnvt.exe is a sample that reads a table from Oracle, Microsoft Access, and Microsoft SQL Server. The OLE DB provider for ODBC returns integer (numeric) data from Oracle in a DB_NUMERIC struct. To convert the DB_NUMERIC to a Visual C++ long, you must use the IDataConvert interface. ICnvt.exe demonstrates how to use the IDataConvert interface when reading an Oracle table. The program also reads the same table from Microsoft Access and SQL Server, where IDataConvert is not necessary. MORE INFORMATIONThe following file is available for download from the Microsoft
Download Center. Click the file name below to download the file: ICNVT.EXERelease Date: Jun-01-1998 For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. Using the Sample FileICnvt.exe reads the oleDBtst table from Oracle, Microsoft Access, and Microsoft SQL Server. The Microsoft Access file "oleDBtst.mdb" (included) uses the DSN "oleDBtst" with the sample program. You will need to create the oleDBtst table on Microsoft SQL Server and Oracle.The Microsoft SQL Server Script to create table oleDBtst:
Oracle:
To compile the program for Oracle, uncomment the following line from the
top of the page:
Additional query words: kbDSupport kbdse kbADO kbDatabase kbOLEDB150
Keywords : kbfile |
Last Reviewed: December 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |