home *** CD-ROM | disk | FTP | other *** search
- DBPROCESS *dbproc;
- int colnum;
- DBINT column_length;
-
- /* put the command into the command buffer */
- dbcmd(dbproc, "select name, id, type from sysobjects");
-
- /* send the command to \*S and begin execution */
- dbsqlexec(dbproc);
-
- /* process the command results */
- dbresults(dbproc);
-
- /* examine the column lengths */
- for (colnum = 1; colnum < 4; colnum++)
- {
- column_length = dbcollen(dbproc, colnum);
- .ne 3
- printf("column %d, length is %ld.\\n", colnum,
- column_length);
- }
-