Example6: Querying and Updating the Database

Click to open or copy the files for the Example6 sample.

This example illustrates opening a data file, inserting data from the file into a newly created table containing several SQL Server datatypes, and updating the table using browse-mode techniques.

Building SDK Samples

This sample uses the following keywords:

alltypes; char; dbcmd; dbdata; dbdead; dberrhandle; dbexit; dbfcmd; dbfreequal; dbinit; dblogin; dbmsghandle; dbnextrow; dbopen; dbprrow; dbqual; dbresults; dbsetlapp; dbsetlpwd; dbsetluser; dbsetlversion; dbsqlexec; decimal; defined; err_handler; exists; fgets; fopen; msg_handler; printf; values; varbinary; varchar