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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

This is just a little confusing, so let’s touch on these parameters just a bit:<br />

Parameter Description<br />

So, to use this for the Production.ManuInstructionsSchemaCollection schema collection, we<br />

would make a query like this:<br />

SELECT XML_SCHEMA_NAMESPACE(‘Production’,’ManuInstructionsSchemaCollection’);<br />

This spews forth a ton of unformatted XML:<br />

Chapter 16: A Brief XML Primer<br />

<strong>SQL</strong> <strong>Server</strong> schema This is your relational database schema (not to be confused with<br />

the XML schema). For example, for the table Production<br />

.ProductModel, Production is the relational schema. For<br />

Sales.SalesOrderHeader, Sales is the relational schema.<br />

xml schema collection The name used when the XML schema collection was created.<br />

In your CREATE table example previously, you referred to the<br />

ProductDescriptionSchemaCollection and<br />

ManuInstructionSSchemaCollection XML schema collections.<br />

namespace Optional name for a specific namespace within the XML schema<br />

collection. Remember that XML schema collections can contain<br />

multiple schema documents — this would return anything that fell<br />

within the specified namespace.<br />

<br />

489

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

Saved successfully!

Ooh no, something went wrong!