MS SQL Server
当从MS SQL Server数据库(DB)生成XML Schema时,MS SQL Server DB数据类型会被转换为下表中列出的XML Schema数据类型。
MS SQL Server数据类型 | XML Schema数据类型 |
uniqueidentifier | xs:ID |
char | xs:string |
nchar | xs:string |
varchar | xs:string |
nvarchar | xs:string |
text | xs:string |
ntext | xs:string |
sysname | xs:string |
bit | xs:boolean |
real | xs:float |
float | xs:double |
decimal | xs:decimal |
money | xs:decimal |
smallmoney | xs:decimal |
datetime | xs:dateTime |
smalldatetime | xs:dateTime |
binary | xs:base64Binary |
varbinary | xs:base64Binary |
image | xs:base64Binary |
integer | xs:integer |
smallint | xs:short |
bigint | xs:long |
tinyint | xs:byte |