sql2005 xml
TRANSCRIPT
XML Enables SQL Server to be a Complete Data Platform
Exploit the XML Capabilities of SQL Server 2005
by Jason Follas
Jason Follas
Technical Architect
User Group Leader
Microsoft MVP – SQL Server
Motorcycle Enthusiast
Astronomy, Prime Numbers, Guitar
232,582,657-1
Serious Addiction to the World of Warcraft
Before we begin, let’s establish a base level of knowledge
demo
XML Enables SQL Server to be a Complete Data Platform
Exploit the XML Capabilities of SQL Server 2005
by Jason Follas
Today's data world is full of XML-based data sources
Every database developer should be able to move data into and out of XML
<XML><XML>
SQL
XML translation in middle-tier can be inflexible and may even increase network overhead
Move XML handling into the database to improve overall integration
Utilize SQL Server 2005 for database solutions that need to use XML data
<XML>
Interpret XML as More Than Just Text Using the XML Data Type
XML is a First-Class Citizen data type
DATETIMEINTVARCHAR
XML
Has methods that offer inspection and extraction of data from the XML
XML columns can be indexed for faster access to the contained data
demo
Harness the Data in XML Using the XQuery Language
Path expressions
FLWOR statement
FORLETWHEREORDER BYRETURN
XQuery Functions
demo
Create XML From Relational Data Using the FOR XML Clause
Return XML from queries instead of rowsets
<XML><XML>
SQL
Control the structure of the resulting XML
Add necessary complexity to the resulting XML
demo
Does moving XML handling into the database improve overall design?
Developers unaware of SQL Server’s XML abilities are doing extra work
Utilize SQL Server 2005 for database solutions that need to use XML data
<XML>
XML enables SQL Server to be a complete Data Platform
XML and SQL Server – A Great Combination
JASON FOLLAShttp://jasonf-blog.blogspot.com
(soon moving to)http://jasonfollas.com