ColumnType Method

QueryResults Object

Description

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

Visual Basic

tDatatype = QueryResults.ColumnType ( [Column :=] lColumn )

C++

HRESULT pQueryResults->GetColumnType (
long
lColumn,
SQLOLE_QUERY_DATATYPE*
tDatatype );

Elements

Element Type Description

tDatatype QueryDatatype Returned column datatype
lColumn Long Column number of the current result set

Remarks

This is an indexed property.