Click to open or copy the files for the Example3 sample.
This example selects some information from the Pubs database. It illustrates binding of both aggregate and compute results. This example requires that the Pubs database exists on your SQL Server.
This sample uses the following keywords:
avg; count; dbaltbind; dbbind; dbcmd; dbdead; dberrhandle; dbexit; dbinit; dblogin; dbmsghandle; dbnextrow; dbopen; dbresults; dbsetlapp; dbsetlpwd; dbsetluser; dbsetlversion; dbsqlexec; dbuse; defined; err_handler; msg_handler; printf; sum