Rogue Wave banner
Previous fileTop of DocumentContentsNext file

4.3 Establishing a C Connection to the Database

The utilities listed in Table 12 do not test whether C or C++ programs written to use a database are able to access the database server. To do that you must compile, link, and run a program that requires access. Database vendors distribute sample programs that allow you to compile and test applications.

Compile, link, and run at least one of the sample C programs distributed by your database vendor. Table 13 lists information about these programs. They should be available in one of the directories established when your database software was installed.

If possible, use the same compiler you plan to use for your DBTools.h++ applications. This is an important step, because it ensures that the required library and header files are present, and that they are compatible with your compiler and linker. If you are unable to compile and link with the sample programs, you will be unable to compile and link DBTools.h++ applications.


NOTE: Rogue Wave technical support cannot help you to compile, link, and run the sample programs from your database vendor. If you have problems, please consult your system administrator or database vendor.

Table 13 -- Database sample programs

 
DatabaseWindows sample programsUNIX sample programs
DB2 Common Server
Distributed with DB2 SDK.
Distributed with DB2 SDK.
Informix
Distributed with Informix SDK.
Distributed with Informix SDK.
MS SQL Server
Distributed by MS SQL Server. Typical location is c:\sql70\devtools\samples\odbc
ODBC
Distributed by Microsoft with the ODBC's Software Developer's Kit (SDK).
Distributed with ODBC drivers.
Oracle and Oracle8
Distributed with Pro*C.
Distributed with Pro*C.
Sybase Client-Library
Distributed by Sybase with Client-Library.
Distributed with Client-Library.


Previous fileTop of DocumentContentsNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.