ColumnName Method

QueryResults Object

Description

Returns the name of a column in the current result set.

Visual Basic

strName = QueryResults.ColumnName ( [Column :=] lColumn )

C++

HRESULT pQueryResults->GetColumnName (
long
lColumn,
SQLOLE_LPBSTR
strName );

Elements

Element Type Description

strName String Returned column name
lColumn Long Column number of the current result set

Remarks

This is an indexed property.