Remove Schema from Schema Collection


is possible remove single schema schema collection?

as far know can delete collection or add schema.



//creating schema collection
create xml schema collection templatecollection as
n'<xstongue tiedchema>...</xstongue tiedchema>'

//adding schema
alter xml schema collection templatecollection add
n'<xstongue tiedchema>...</xstongue tiedchema>'


//deleting schema collection
if exists (select * sys.xml_schema_collections c, sys.schemas s c.schema_id = s.schema_id , (quotename(s.name) + '.' + quotename(c.name)) = n'[dbo].[catalogcollection]')
drop xml schema collection [dbo].[templatecollection ]

i haven't found solution. help!!!

danke,
anna

anna,

 

in sql server 2005, not support deletion schema evolution option. please send feedback https://connect.microsoft.com/sqlserver. workaround, can create new schema contains namespaces need , execute alter table ... alter column ddls on xml columns , change type new schema collection.

 

regards,

galex yen



SQL Server  >  SQL Server XML



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........