XML desteği IÇIN zaman damgası veri türü

Içinde IÇIN XML dönüştürme, Timestamp türü değerleri kabul edilirvarbinary(8) veri olacak her zaman base 64 kodlu olması.Istenirse, XSD veya XDR şema, bu tür yansıtır.

drop table t
go
create table t
(c1 int,
 c2 timestamp)
go

insert t values(1, null)
go
select * from t
for xml auto, xmldata
go

Bu sonucu oluşur:

  <Schema name="Schema1" 
          xmlns="urn:schemas-microsoft-com:xml-data" 
          xmlns:dt="urn:schemas-microsoft-com:datatypes">
    <ElementType name="t" content="empty" model="closed">
      <AttributeType name="c1" dt:type="i4" />
      <AttributeType name="c2" dt:type="bin.base64" />
      <attribute type="c1" />
      <attribute type="c2" />
    </ElementType>
  </Schema>
  <t xmlns="x-schema:#Schema1" c1="1" c2="AAAAAAAAH04=" />