|
next
|
 Subject: Xquery to MS/SQL? Author: Kingsley Idehen Date: 18 May 2005 12:11 PM
|
I don't want to make this answer appear to be a promo! Its just a simple unveiling of a clear oversight in the response to this question.
OpenLink Virtuoso (like SQL Server 2005) does provide you with the ability to perform XQuery over SQL Data that is exposed as XML (valid or well formed). This has actually been the case for a number of years now :-(
You can use the FOR XML syntax (ala SQL Server), the new SQL/XML (ala SQLX), or XML Schema Mapping to create these XML views of SQL Data.
All that is required is that your SQL Data Source ODBC or JDBC compliant.
To see what I mean in action (a live solution based on what you are describing) see my blog: http://www.openlinksw.com/blog/~kidehen . The RDF, FOAF, RSS, Atom, and other gems are all SQL exposed as XML. If you go to the "Advanced Search" link on the blog it brings you to a search page that provides you with an XQuery option. Naturally, this is an example of XQuery hitting SQL data on the fly (here is an example URI: http://www.openlinksw.com/weblog/public/search.vspx?blogid=127&q=xquery&type=text&output=html ). The important thing about the URI is that it can be used as a context node for XQuery from outside Virtuoso using tools such as Stylus Studio which shows the value of XQuery for transforming and exposing SQL content for XML data consumers.
The data in my demo is stored in Virtuoso but it could have also have been an ODBC or JDBC accessible database or combination of databases (by this I mean my data model could exist across Oracle, Sybase, Ingres, Progress etc. if so required), since Virtuoso in a Virtual DBMS engine also.
BTW - You can obtain a copy of Virtuoso from http://virtuoso.openlinksw.com or explore our online tutorials at: http//demo.openlinksw.com .
I hope this helps clarify this matter by broadening your awarness of the tools that are available today that compliment Stylus Studio and its quest to assist in the unveiling of the potential of XQuery etc..
|
|
|
|