Click to open or copy the files for the Example1 sample.
This example illustrates how to send two queries to SQL Server in a command batch. It binds each set of results and prints the rows.
This sample uses the following keywords:
dbbind; dbcmd; dbcurcmd; dbcurrow; dbdead; dberrhandle; dbexit; dbinit; dblogin; dbmsghandle; dbnextrow; dbopen; dbresults; dbsetlapp; dbsetlpwd; dbsetluser; dbsetlversion; dbsqlexec; defined; err_handler; msg_handler; printf