Returns information about the type of data that can be stored in one or more columns.
sp_columns table_name [, table_owner] [, table_qualifier] [, column_name]
is the table name or view. Use the wildcard character to request information about more than one table.
is the owner of the table or view. Use the wildcard character to request information about tables owned by more than one user.
is ignored. Leave blank or set to NULL.
is the name of the column for which you want information. Use the wildcard character to request information about more than one column.
This procedure returns the Adaptive Server datatype that most clearly matches the native datatype of the target, regardless of the current datatype properties.
This procedure corresponds to the ODBC function SQLColumns.
This procedure returns one row containing a description of each column in a table.
There are three columns in the result set that describe each columns data type; TYPE_NAME, DATA_TYPE, and REMOTE_DATA_TYPE.
Table 11-1 describes the values returned in the TYPE_NAME and DATA_TYPE columns of the result set. TYPE_NAME contains the ODBC data type name and DATA_TYPE contains the ODBC integer identifier.
The REMOTE_DATA_TYPE column contains a 32-bit or 4-byte composite user datatype UDT specifically identifying the remote datatype. See Table 11-2.
Table 11-1 also describes the identifiers returned in the TYPE_NAME and DATA_TYPE columns in the result set for sp_special_columns.
This procedure allows transmission of column datatypes using a target-specific-type ID. The REMOTE_DATA_TYPE column contains a 32-bit composite datatype defined by the access service.
The following table describes the datatype value.
Copyright © 2005. Sybase Inc. All rights reserved. |