Table 2-2 and Table 2-3 list the datatype code numbers and matching datatype names returned by sp_columns and sp_sproc_columnsin the “data_type” column. The source for the description is the Open Database Connectivity (ODBC) Application Programming Interface (API).
Datatype |
Code # |
---|---|
char |
1 |
decimal |
3 |
double precision |
8 |
float |
6 |
integer |
4 |
numeric |
2 |
real |
7 |
smallint |
5 |
varchar |
12 |
Copyright © 2005. Sybase Inc. All rights reserved. |