Example 2: Insert data into a new table

The example2.c sample program inserts data from a file into a newly created table, selects the server rows, and binds and prints the results. This sample requires a file named datafile (supplied). It also assumes that you have create database permission in your login database.