We have assumed you have a good ODBC API reference to hand (see ODBC Reference) as this tutorial is not an attempt to just reproduce the ODBC Programmers Reference it is more example based. It is expected you already understand the C programming language, and are able to edit, compile and link programs. This tutorial does not explain the C language and how to write C. All Easysoft ODBC drivers include the unixODBC driver manager.įor this tutorial we used the Easysoft ODBC-ODBC Bridge as the ODBC driver to access a remote MS SQL Server database from UNIX.ĭownload ODBC Drivers for Oracle®, SQL Server, Salesforce, MongoDB, Access, Derby, InterBase & DB2. Easysoft can supply ODBC drivers for many databases and operating systems. You will need an ODBC driver and a working database to connect to. You can find out the unixODBC version you are using with: We used unixODBC 2.2.12 in this tutorial. ![]() You probably have the unixODBC driver manager installed if you have the odbcinst command (for ODBC drivers from Easysoft, the unixODBC driver manager is located in /usr/local/easysoft/unixODBC and the odbcinst command in the bin sub directory of that path). We recommend you use the unixODBC driver manager. load the driver you want to connect to.provide the C header files that allow you to compile your application.You link your application with an ODBC Driver Manager which will: ![]() For this tutorial we used gcc on Linux, but with a few small alterations the C compilers from Sun, HP, IBM etc will work just as well. Pre-requisitesīefore you start part 1 of this tutorial you need to ensure you satisfy all the pre-requisites: This is part 1 of a series of Easysoft tutorials on using ODBC from C.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |