Help Center

CODBCStmt.ColSchemaNamemethod

The schema of the table that contains the column.

DatabasesmethodCODBCStmt.incdocumented

Syntax

FUNCTION ColSchemaName (BYVAL ColNum AS SQLUSMALLINT) AS DWSTRING

Parameters

NameDescription
ColNumColumn number.

Return value

The schema of the table that contains the column.

Result code (GetLastResult)

SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE.

Description

The schema of the table that contains the column. The returned value is implementation-defined if the column is an expression or if the column is part of a view. If the data source does not support schemas or the schema name cannot be determined, an empty string is returned. This VARCHAR record field is not limited to 128 characters.

Reference

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