The ODBC from C Tutorial
In this section for example-based C tutorials that introduce you to ODBC API programming in C. Each tutorial contains C ODBC code samples that illustrate database access tasks such as establishing an ODBC connection, generating
C and C++ books-page8
The ODBC from C Tutorial
In this section for example-based C tutorials that introduce you to ODBC API programming in C. Each tutorial contains C ODBC code samples that illustrate database access tasks such as establishing an ODBC connection, generating result sets and fetching the results.
You will need an ODBC driver and a working database to connect to. Easysoft can supply ODBC drivers for many databases and operating systems. All Easysoft ODBC drivers include the unixODBC driver manager.
For this tutorial we used the Easysoft ODBC-ODBC Bridge as the ODBC driver to access a remote MS SQL Server database from UNIX.
The ODBC Application Programming Interface (API) defines the functions your application can call in the ODBC driver manager and the arguments they
take. The reference for the ODBC API is The Microsoft ODBC 3.0 Programmers Reference Volume 1 and 2
although you may have some trouble finding this now. You can also find the entire ODBC reference in older versions of the ODBC SDK and online at Microsoft's web site.
The learning GNU C
Welcome to Learning GNU C. The aim of this book is to teach GNU users how to write software in C. It is written primarily as a tutorial for beginners but should be thorough enough to be used as a reference by experience programmers. The basics are layed down in full in the first few chapters, beginners will read these chapters carefully while those with prior experience can skim through them. All the information is there, no prior knowledge of programming is assumed.
The reader is assumed to have access to a computer with a GNU system installed. Although the target audience is GNU users, the content of the book should also be 98% relevant to users of OpenBSD, FreeBSD, or NetBSD. Some familiarity with using your computer from the shell (the command line) would be helpful although all commands will be shown along side programming examples.
Bug-free C code This book describes an alternate class methodology that provides complete data hiding and fault-tolerant run-time type checking of objects in C programs. With it, you will produce code that contains fewer bugs.
The class methodology helps to prevent bugs by making it easier to write C code. It does this by eliminating data structures
from include files, which makes a project easier to understand which makes it easier to write C code, which helps to eliminate bugs. This class methodology, which uses private class declarations, is different from C++, which uses public class declarations.
The class methodology helps detect bugs by providing for both compile-time and run-time type checking of pointers (handles) to class objects. This run-time type checking catches a lot of bugs for you since invalid object handles (the cause of a lot of bugs) are automatically detected and reported.