SqlAltUType&

Returns the user-defined datatype of a compute column.

Syntax

SqlAltUType& ( sqlconn%, computeid%, column% )

where

sqlconn%
Is a SQL Server connection. The value of sqlconn% is returned by SqlOpen%.
computeid%
Is the COMPUTE clause. A SELECT statement can have multiple COMPUTE clauses, which can have varying numbers of aggregate operators and aggregate targets. The computeid% is returned by SqlNextRow% or SqlGetRow%.
column%
Is the number of the column. The first column returned is number 1.

Returns

The user-defined datatype of the specified compute column on success, or - 1 on error.

Remarks

Call SqlAltUType& only after SqlNextRow% or SqlGetRow% returns a compute ID.

See Also

SqlAData$, SqlGetRow%, SqlNextRow%, SqlNumAlts%