MS SQL Server
Lorsqu'un schéma XML est généré depuis une base de données Serveur MS SQL (BD), les types de données Serveur MS SQL BD sont convertis en des types de données de Schéma XML tels que recensés dans la table ci-dessous.
Type de données Schéma XML | Type de données Serveur MS SQL |
ID | uniqueidentifier |
xs:string | If no facets { if UNICODE nvarchar (255) else varchar (255) } else { if UNICODE (Size = either length or maxLength) If Size <= 4000 if FacetLengthIsSet then nChar else nVarChar if Size <= 1073741823 then nText } else { if NON-UNICODE (Size = either length or maxLength) If Size <= 8000 if FacetLengthIsSet then char else varchar if Size <= 2147483647 then text } |
xs:normalizedString | Comme xs:string |
xs:token | Comme xs:string |
xs:Name | Comme xs:string |
xs:NCName | Comme xs:string |
xs:anyURi | Comme xs:string |
xs:QName | Comme xs:string |
xs:NOTATION | Comme xs:string |
xs:boolean | bit |
xs:float | real |
xs:double | float |
xs:decimal | decimal |
xs:duration | datetime |
xs:dateTime | datetime |
xs:time | datetime |
xs:date | datetime |
xs:gYearMonth | datetime |
xs:gYear | datetime |
xs:gMonthDay | datetime |
xs:gDay | datetime |
xs:gMonth | datetime |
xs:hexBinary | If no facets varbinary (255) (Size = either length or maxLength If Size <= 8000 if FacetLengthIsSet then binary else varbinary if Size <= 2147483647 then image |
xs:base64Binary | Same as xs:hexBinary |
xs:integer | int |
xs:int | int |
xs:negativeInteger | Int (limité à {...,-2,-1}) |
xs:positiveInteger | Int (limité à {1,2,...}) |
xs:nonNegativeInteger | int (limité à {0,1,2,...}) |
xs:nonPositiveInteger | int (limité à {...,-2,-1,0}) |
xs:unsignedInt | int (contraintes supplémentaires) |
xs:short | smallint |
xs:unsignedShort | smallint (contraintes supplémentaires) |
xs:long | bigint |
xs:unsignedLong | bigint (contraintes supplémentaires) |
xs:byte | tinyint |
xs:unsignedByte | tinyint (contraintes supplémentaires) |