ODBC program examples

ODBC programming examples demonstrate IBM® i Access queries and stored procedures.

The IBM i Access ODBC programming examples listed below demonstrate how to perform simple queries and how to call stored procedures to access and return data. C/C++, Visual Basic, and RPG programming language versions are provided.

Many of the C/C++ samples are not complete programs. For complete discussions and programming samples, review the following information:

  • To access ODBC programming samples for Visual Basic, C++, and Lotus® Script programming environments, select the related link below to the IBM ftp site on the Web. Select index.txt to see what programming examples are available and to download them to your PC.
  • See the Stored procedures topic collection in the IBM i Information Center for information on stored procedures and examples on how to call them.
  • Search for ODBC samples in Microsoft's MSDN library or ODBC webpage for Visual Basic, ADO, and C/C++ examples.
  • Also see the C programming example in the Programmer's Toolkit.
Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.