home *** CD-ROM | disk | FTP | other *** search
- DBPROCESS *dbproc;
- DBINT row_number = 0;
- DBINT data_length;
-
- /* put the command into the command buffer */
- dbcmd(dbproc, "select name from sysobjects");
-
- /* send the command to \*S and begin execution */
- dbsqlexec(dbproc);
-
- /* process the command results */
- dbresults(dbproc);
-
- /* examine the data lengths of each row */
- while (dbnextrow(dbproc) != NO_MORE_ROWS)
- {
- row_number++;
- data_length = dbdatlen(dbproc, 1);
- .ne 3
- printf("row %ld, data length is %ld.\\n", row_number,
- data_length);
- }
-