The demoodbc Application
DataDirect ships an application, named demoodbc, that is installed in the demo subdirectory in the product installation directory. Once you have set up your environment and data source, use the demoodbc application to test your connection. The syntax to run the application is:
For example:
The demoodbc application is coded to execute a Select statement from a table named
emp. If you have anemptable in your database, the results are returned. If you do not have anemptable, you receive the message:Invalid object name 'EMP'. This message confirms a successful connection to the database.Refer to the readme file in the demo subdirectory for an explanation of how to build and use this application.