2.3.1.5.1 ColumnType
The set of ColumnType values that are supported by the xsi:type attribute value of the COLUMN element identifies the database data type of an instance of an element.
The following table describes the mapping between the data type names that are specified in the xsi:type attribute of the COLUMN element and the database data types.<7>
COLUMN data type |
Database data type |
---|---|
SQLBIGINT |
|
SQLBINARY |
|
SQLBIT |
|
SQLCHAR |
|
SQLDATE |
|
SQLDATETIME |
|
SQLDATETIME2 |
|
SQLDATETIMEOFFSET |
|
SQLDATETIM4, |
|
SQLDECIMAL |
|
SQLFLT4 |
|
SQLFLT8 |
|
SQLIMAGE |
|
SQLINT |
|
SQLMONEY |
|
SQLMONEY4 |
|
SQLNCHAR |
|
SQLNTEXT |
|
SQLNUMERIC |
|
SQLNVARCHAR |
|
SQLSMALLINT |
|
SQLTEXT |
|
SQLTIME |
|
SQLTINYINT |
|
SQLUNIQUEID |
|
SQLVARYBIN |
|
SQLVARYCHAR |
|
SQLUDT |
The COLUMN element supports native SQL data types as follows.
Type category |
COLUMN data types |
Optional XML attribute for data type |
---|---|---|
Fixed<8> |
|
NULLABLE |
Variable Scale |
|
NULLABLE, SCALE |
Variable Number |
|
NULLABLE, PRECISION, SCALE |
LOB |
|
NULLABLE |
Binary string |
|
NULLABLE, LENGTH |
Character string |
|
NULLABLE, LENGTH |