removing schema from typed xml

  • So to move an untyped xml column to typed I run the following

    alter table

    alter column ColumnName xml (dbo.SchemaName)

    How do I go the other way.

    Running the following errored out.

    alter table

    alter column ColumnName xml

  • You need to specify the table name after "alter table". For example:

    create table schematest (data xml(ElementTest))

    go

    alter table schematest alter column data xml

    .

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply