dbaltutype
Returns the user-defined data type for a compute column.
Syntax
DBINT dbaltutype (
PDBPROCESS dbproc,
INT computeid,
INT column );
Arguments
- dbproc
- Is the DBPROCESS structure that is the handle for a particular workstation/ Microsoft® SQL Server™ process. It contains all the information that DB-Library uses to manage communications and data between the workstation and SQL Server.
- computeid
- Is the ID that identifies 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 dbnextrow or dbgetrow.
- column
- Is the number of the column. The first column is number 1.
Returns
The user-defined data type of the specified compute column on success and -1 on error.
Remarks
This function is defined as type DBINT, because both the DB-Library data type DBINT and user-defined data types are 32 bits long. Call dbaltutype only after dbnextrow or dbgetrow returns a computeid.
See Also
(c) 1988-98 Microsoft Corporation. All Rights Reserved.