Problem:
This example demonstrates the use of the Win32 SDK ODBC functions to get information about installed ODBC drivers.
Resolution:
INTRODUCTION
==========
This example demonstrates the use of the Win32 SDK ODBC functions to get information about installed ODBC drivers. This example uses the direct ODBC function calls instead of using the Net Express OpenESQL preprocessor. This program will display a list of all ODBC drivers installed on your system and will then open a connection to the Net Express Sample1 DSN and display information about it. This sample DSN is installed along with the Net Express demo programs.
SOURCE FILES:
==========
Program Files Description
------------------- -----------------------------------------------------------
ODBCINFO.CBL Program that calls the ODBC functions.
SQLFUNC.CPY Copy file containing constants used by the ODBC function calls.
ODBC32.LIB Import Library which resolves links to the ODBC function calls. This library is
referenced in the Project Build Settings/Link/Advanced settings for
ODBCINFO.EXE.
REQUIREMENTS:
==========
This sample should run in all environments that have an ODBC datasource installed. The Net Express Sample1 DSN should also be present or you can change the program to reference a database of your own.
OPERATION:
========
Rebuild this project to create the file odbcinfo.exe. This is a character mode program that will display the results of the ODBC function calls.
==========================================================
Keywords: demonstration, sample, example, demo, win32 api, odbcinfo.zip
demo.ex
demo.ne