Tipo xs:QName
Si applica a:SQL ServerDatabase SQL diAzure Istanza gestita di SQL di Azure
SQL Server non supporta i tipi derivati da xs:QName tramite un elemento di restrizione di XML Schema. SQL Server attualmente non supporta i tipi di unione con QName come tipo di membro.
Esempio
Le istruzioni seguenti CREATE XML SCHEMA COLLECTION
non possono caricare lo schema XML perché specificano il xs:QName
tipo come tipo membro dell'unione:
CREATE XML SCHEMA COLLECTION QNameLimitation1 AS N'
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="myUnion">
<xs:union memberTypes="xs:int xs:QName"/>
</xs:simpleType>
</xs:schema>';
GO
CREATE XML SCHEMA COLLECTION QNameLimitation2 AS N'
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="myUnion">
<xs:union memberTypes="xs:integer">
<xs:simpleType>
<xs:list itemType="xs:QName"/>
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:schema>';
GO
Entrambe le istruzioni hanno esito negativo e generano un errore.
Vedi anche
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Invia e visualizza il feedback per