Home > SOA Tips > XML Developer > Bringing XML and SQL Server closer
SOA Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

XML DEVELOPER

Bringing XML and SQL Server closer


Ed Tittel
02.23.2005
Rating: -4.43- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Developers who work with multiple kinds of data in any kind of volume typically find they must use databases to access relational data and XML to access document data. For example, report generators, or enterprise resource planning applications, work mostly with relational databases, yet repackaging that data for interaction with suppliers or customers typically requires working with one or more XML applications.

Developers in the Microsoft camp deal mostly with SQL Server, the.NET Framework, Visual Studio and various related programming languages. And although SQL Server 2000 incorporated basic XML functionality, it's often necessary to boost client-side capabilities with tools like the free SQLXML.

In a nutshell, SQLXML supports the ability to create an XML view of relational data, and to interact with it as if it were an XML file. Thus, SQLXML permits the following kinds of operations against SQL Server 2000 databases:
  • Use XPath for queries.
  • Use Transact-SQL for queries, but return XML results.
  • Update relational data the same way you'd update XML.
  • Convert XML data into relational data, then load it into an existing SQL Server 2000 database.
  • Use URLs from a Web browser or application to query SQL Server.
  • Use OLEDB/ADO to access XML functions in SQL Server.
  • Use .NET Framework classes to access XML functions in SQL Server.

Although these are useful and effective, such contortions will no longer be required in the forthcoming release of SQL Server 2005.

SQL Server 2005 will support a broad range of native XML support, without requiring extra add-ins or transforms. The new release includes instructions like OpenXML, a command that takes XML documents and converts them into tabular format for database storage (called shredding, in SQL Server lingo), and FOR XML, a tool that permits relational data to be published as XML on-demand.

The new version of SQL Server will also apply native database indexes, constraints and SQL queries to XML data, and will allow tabular views of XML document data without requiring an intermediate conversion tool or step. This combined capability adds a lot of flexibility and power to SQL server since relational formats are great for representing data that is regular in structure, and comes many instances. But XML's representational power lets it capture the nuances of all kinds of information that may neither be terribly regular, nor allow extremely large numbers of instances to exist. This includes hierarchical data (a notorious pain to represent and navigate in purely relational terms), unstructured data (especially most kinds of text documents) and extremely complex document or record structures.

It will be interesting to see how this great marriage of capabilities is exploited in applications based on SQL Server 2005. It will also be interesting to see if XML support helps make databases a more natural place to store documents and other more unstructured forms of data. But one thing's for sure: There's a lot of potential for this powerful pairing.

Ed Tittel is a full-time writer and trainer whose interests include XML and development topics, along with IT Certification and information security topics. E-mail Ed at etittel@techtarget.com with comments, questions, or suggested topics or tools for review.

Rate this Tip
To rate tips, you must be a member of SearchSOA.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
XML Developer
Use the soapUI software tool to tame WSDL
WSDL 2.0, new messaging for Web services
Using RELAX NG For data integration
Efficient XML Interchange tackles data verbosity
XML to DDL imports, synchronizes database schemata
The basics of MathML 3.0
Migrating to XSLT 2.0
What's up with XML 2.0?
Say hello to XPath 2.0
Podcasting software covers many bases

XML and XML schema
What's the future of XML?
SOA pattern of the week (#7): policy centralization
Try XML-based Extensible Business Reporting Language (XBRL) for accounting reports
What's new at the W3C
Ganymede: Modeling tools target SOA, UML
Data services mashups emerge for SOA
Making sense of data services mashups
XML turns 10
SOA helps save 100-year-old business
Oracle maps heterogeneous data services strategy for SOA

Microsoft .NET Web services
Microsoft preps .NET 4.0 - framework improves on REST, MVC, JQuery support
How do I balance throughput requirements and interoperability?
APM software traces transactions across tiers, technologies
How you can learn M Grammar for Oslo modeling
Legacy modernization opens Windows for publisher
Former .NET Web developers ride Ruby and Rails application framework
Microsoft Oslo at PDC: Dial 'M' for modeling language
Yahoo proxy fight looms
New Microsoft site for architects
LAMP coders go hybrid route
Microsoft .NET Web services Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
class diagram  (SearchSOA.com)
Fast Infoset (FI)  (SearchSOA.com)
GeoRSS  (SearchSOA.com)
Keyhole Markup Language  (SearchSOA.com)
RELAX NG  (SearchSOA.com)
state diagram  (SearchSOA.com)
Universal Business Language  (SearchSOA.com)
Vector Markup Language  (SearchSOA.com)
XML infoset  (SearchSOA.com)
XML pipeline  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



SOA Trends and Strategy - SOA Education, SOA Development, SOA Implementations
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts