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.

16<br />

A Brief XML Primer<br />

So, here we are — most of our structural stuff is done at this point, and we’re ready to start moving<br />

on to the peripheral stuff. That is, we’re ready to start looking at things that are outside of what<br />

one usually actively thinks of when working with relational database systems. It’s not that some of<br />

the items we still have to cover aren’t things that you would normally expect out of a relational<br />

database system — it’s just that we don’t really need these in order to have a functional <strong>SQL</strong> <strong>Server</strong>.<br />

Indeed, there are so many things included in <strong>SQL</strong> <strong>Server</strong> now, that it’s difficult to squeeze everything<br />

into one book.<br />

This chapter will start by presenting some background for what has become an increasingly integral<br />

part of <strong>SQL</strong> <strong>Server</strong> — XML. We will then move on to looking at some of the many features<br />

<strong>SQL</strong> <strong>Server</strong> has to support XML. The catch here is that XML is really entirely its own animal —<br />

it’s a completely different kind of thing than the relational system we’ve been working with up to<br />

this point. Why then does <strong>SQL</strong> <strong>Server</strong> include so much functionality to support it? The short<br />

answer is that XML is probably the most important thing to happen to data since the advent of<br />

data warehousing.<br />

XML has actually been around for years now, but, while the talk was big, its actual usage was not<br />

what it could have been. Since the late ’90s, XML has gone into wider and wider use as a generic<br />

way to make data feeds and reasonable-sized data documents available. XML provides a means<br />

to make data self-describing — that is, you can define type and validation information that can<br />

go along with the XML document so that no matter who the consumer is (even if they don’t<br />

know anything about how to connect to <strong>SQL</strong> <strong>Server</strong>), they can understand what the rules for that<br />

data are.<br />

XML is often not a very good place to store data, but it is a positively spectacular way of making<br />

data useful — as such, the ways of utilizing XML will likely continue to grow, and grow, and grow.

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

Saved successfully!

Ooh no, something went wrong!