SQLExamp: Determining Column Widths

SQLExamp illustrates handling of various data types for consistent output. The example processes a user’s Transact-SQL statement and formats result rowset data for display.

Functions Illustrated
dbinit dbnextrow
dbsettime dbnumcols
dbmsghandle dbcoltype
dberrhandle dbcolinfo
dblogin dbcollen
DBSETLUSER dbcolname
DBSETLHOST dbdata
DBSETLVERSION dbdatlen
dbopen dbconvert
dbcmd dbcancel
dbsqlexec DBCOUNT
dbresults dbclose

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.