17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 16: A Brief XML Primer<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

’;<br />

Note that the URL portion of the namespace declaration must be entered on a single line. It is shown<br />

here word wrapped onto multiple lines because there is a limit to the number of characters we can show<br />

per line in print. Make sure you include the entire URL on a single line.<br />

This one happens to be just like the Production.ManuInstructionsSchemaCollection schema collection,<br />

but I’ve altered the schema to require the summary element rather than having it optional. Since<br />

the basic structure is the same, I utilized the same namespaces.<br />

ALTER XML SCHEMA COLLECTION<br />

This one is just slightly different from other ALTER statements in the sense that it is limited to just adding<br />

new pieces to the collection. The syntax looks like this:<br />

ALTER XML SCHEMA COLLECTION [.] <br />

ADD { | }<br />

I would not be at all surprised if the functionality of this is boosted a bit in a later service pack, but, in<br />

the meantime, let me stress that this is a tool for adding to your schema collection rather than changing<br />

or removing what’s there.<br />

DROP XML SCHEMA COLLECTION<br />

This is one of those classic “does what it says” things and works just like any other DROP:<br />

DROP XML SCHEMA COLLECTION [.] <br />

491

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!