These routines can be called after dbsqlexec returns SUCCEED:
dbnumcols – determines the number of columns in the current set of results.
dbcolname – returns the name of a regular result column.
dbcollen – returns the maximum length for a regular column’s data.
dbcoltype – returns the server datatype for a regular result column.
dbdatlen – returns the actual length of a regular column’s data. This routine is often used in conjunction with dbdata. The value returned by dbdatlen is different for each regular row read by dbnextrow.
dbvarylen – indicates whether the column’s data can vary in length.