sql2005 xml

37
XML Enables SQL Server to be a Complete Data Platform Exploit the XML Capabilities of SQL Server 2005 by Jason Follas

Upload: nkaluva

Post on 10-May-2015

317 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Sql2005 xml

XML Enables SQL Server to be a Complete Data Platform

Exploit the XML Capabilities of SQL Server 2005

by Jason Follas

Page 2: Sql2005 xml

Jason Follas

Page 3: Sql2005 xml

Technical Architect

Page 4: Sql2005 xml

User Group Leader

Page 5: Sql2005 xml

Microsoft MVP – SQL Server

Page 6: Sql2005 xml

Motorcycle Enthusiast

Page 7: Sql2005 xml

Astronomy, Prime Numbers, Guitar

232,582,657-1

Page 8: Sql2005 xml

Serious Addiction to the World of Warcraft

Page 9: Sql2005 xml

Before we begin, let’s establish a base level of knowledge

Page 10: Sql2005 xml

demo

Page 11: Sql2005 xml

XML Enables SQL Server to be a Complete Data Platform

Exploit the XML Capabilities of SQL Server 2005

by Jason Follas

Page 12: Sql2005 xml

Today's data world is full of XML-based data sources

Page 13: Sql2005 xml

Every database developer should be able to move data into and out of XML

<XML><XML>

SQL

Page 14: Sql2005 xml

XML translation in middle-tier can be inflexible and may even increase network overhead

Page 15: Sql2005 xml

Move XML handling into the database to improve overall integration

Page 16: Sql2005 xml

Utilize SQL Server 2005 for database solutions that need to use XML data

<XML>

Page 17: Sql2005 xml

Interpret XML as More Than Just Text Using the XML Data Type

Page 18: Sql2005 xml

XML is a First-Class Citizen data type

DATETIMEINTVARCHAR

XML

Page 19: Sql2005 xml

Has methods that offer inspection and extraction of data from the XML

Page 20: Sql2005 xml

XML columns can be indexed for faster access to the contained data

Page 21: Sql2005 xml

demo

Page 22: Sql2005 xml

Harness the Data in XML Using the XQuery Language

Page 23: Sql2005 xml

Path expressions

Page 24: Sql2005 xml

FLWOR statement

FORLETWHEREORDER BYRETURN

Page 25: Sql2005 xml

XQuery Functions

Page 26: Sql2005 xml

demo

Page 27: Sql2005 xml

Create XML From Relational Data Using the FOR XML Clause

Page 28: Sql2005 xml

Return XML from queries instead of rowsets

<XML><XML>

SQL

Page 29: Sql2005 xml

Control the structure of the resulting XML

Page 30: Sql2005 xml

Add necessary complexity to the resulting XML

Page 31: Sql2005 xml

demo

Page 32: Sql2005 xml

Does moving XML handling into the database improve overall design?

Page 33: Sql2005 xml

Developers unaware of SQL Server’s XML abilities are doing extra work

Page 34: Sql2005 xml

Utilize SQL Server 2005 for database solutions that need to use XML data

<XML>

Page 35: Sql2005 xml

XML enables SQL Server to be a complete Data Platform

Page 36: Sql2005 xml

XML and SQL Server – A Great Combination

Page 37: Sql2005 xml

JASON FOLLAShttp://jasonf-blog.blogspot.com

(soon moving to)http://jasonfollas.com

[email protected]