Help Center

CODBCStmt.ColBaseTableNamemethod

Returns the name of the base table that contains the column.

DatabasesmethodCODBCStmt.incdocumented

Syntax

FUNCTION ColBaseTableName (BYVAL ColNum AS SQLUSMALLINT) AS DWSTRING

Parameters

NameDescription
ColNumColumn number.

Return value

The name of the base table that contains the column.

Result code (GetLastResult)

SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE.

Description

Returns the name of the base table that contains the column. If the base table name cannot be defined or is not applicable, then this variable contains an empty string. This information is returned from the SQL_DESC_BASE_TABLE_NAME record field of the IRD, which is a read-only field.

Reference

  • Include file CODBCStmt.inc
  • Defined in AfxNova/COdbcStmt.inc:848
  • Documented in Databases/ODBC Classes/CODBCStmt Class.md
  • Topic: CODBCStmt Class