Returns the name of a table based on its number.
LPCSTR dbtabname (
PDBPROCESS dbproc,
INT tabnum );
where
A pointer to the null-terminated name of the specified table. This pointer is NULL if the table number is out of range or if the specified table is a SQL Server work table. For a description of work tables, see "dbtabcount."
The dbtabname function is one of the DB-Library browse-mode functions. For a detailed discussion of browse mode, see Browse Mode in Programming with DB-Library.
A SELECT statement can generate a set of result rows whose columns are derived from several database tables. The database tables are specified by the FROM clause. The dbtabname function provides a way for an application to determine the name of each table involved in an ad hoc query. If the query has been hard-coded into the program, this function is unnecessary.
The dbtabname function can be called any time after dbresults.
dbcolbrowse, dbcolsource, dbqual, dbresults, dbtabbrowse, dbtabcount, dbtabsource, dbtsnewlen, dbtsnewval, dbtsput; Bulk-Copy Functions