<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Look at part 14 of the ISO/ANSI SQL Spec for the standardized support
for XML and XQuery in SQL.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Best regards<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Michael<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>PS: If your goal is to get XML out from relational data, I would
recommend looking at <a
href="http://msdn.microsoft.com/en-us/library/ms345137.aspx#forxml2k5_topic6">http://msdn.microsoft.com/en-us/library/ms345137.aspx#forxml2k5_topic6</a>
for MS/SQL.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'> talk-bounces@x-query.com
[mailto:talk-bounces@x-query.com] <b>On Behalf Of </b>David A. Lee<br>
<b>Sent:</b> Monday, June 15, 2009 2:22 PM<br>
<b>To:</b> Brian Maso<br>
<b>Cc:</b> talk@xquery.com<br>
<b>Subject:</b> Re: [xquery-talk] XQuery and databases - XQuery 2.0<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Not sure about a &quot;standard&quot; but the top DB vendors
have done this already years ago<br>
<br>
Oracle:<br>
<a
href="http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1027254">http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1027254</a><br>
<br>
MS/SQL<br>
<a href="http://msdn.microsoft.com/en-us/library/aa286527.aspx">http://msdn.microsoft.com/en-us/library/aa286527.aspx</a><br>
<br>
DB2<br>
<a
href="http://www.ibm.com/developerworks/db2/library/techarticle/dm-0603saracco2/">http://www.ibm.com/developerworks/db2/library/techarticle/dm-0603saracco2/</a><br>
<br>
But if you think SQL is incomprehensible, take a gander at what you have to do
with these (above) implementations to get XML out ....<br>
<br>
Give me pure XQuery any day :)<br>
<br>
<br>
<br>
<br>
<br>
<br>
<o:p></o:p></p>

<pre>David A. Lee<o:p></o:p></pre><pre><a href="mailto:dlee@calldei.com">dlee@calldei.com</a>&nbsp; <o:p></o:p></pre><pre><a
href="http://www.calldei.com">http://www.calldei.com</a><o:p></o:p></pre><pre><a
href="http://www.xmlsh.org">http://www.xmlsh.org</a><o:p></o:p></pre><pre>812-482-5224<o:p></o:p></pre>

<p class=MsoNormal><br>
<br>
Brian Maso wrote: <o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>I had heard that future versions
of the SQL standard are to bring XML in to SQL -- basically make non-validated
XML nodes as valid column types and add intra-XML indexing. This was quite a
while ago that I heard it, but it was delivered by a reputable source. Seems
like these two language have huge overlap and can eventually be replaced by a
single query language.<br>
<br>
(Besides, SQL is so incomprehensible for even modestly-sized queries, it would
be great to replace it with something a bit more understandable such as XQuery;
not to mention the legions of vendor specifics and incompatibilities...)<br>
<br>
Best regards,<br>
Brian Maso<o:p></o:p></p>

<div>

<p class=MsoNormal>On Mon, Jun 15, 2009 at 12:44 PM, Adam Retter &lt;<a
href="mailto:adam.retter@googlemail.com">adam.retter@googlemail.com</a>&gt;
wrote:<o:p></o:p></p>

<p class=MsoNormal>&gt;&gt; 2)Is there (or will there be) possibility to make a<br>
&gt;&gt; database-connection just with XQuery ? So that I can give host, port,<br>
&gt;&gt; login, passwort, etc and XQuery is able to connect to the database ?<br>
&gt;&gt; Am I correct, that at the moment it is only possible if you use XQuery<br>
&gt;&gt; executed from java (or an other programming language, that is able to<br>
&gt;&gt; create a connection) ?<br>
&gt;<br>
&gt; This depnds on the XQuery engine you use. E.g. for my own Web site,<br>
&gt; the Java-based XQuery engine I use is Qizx, and it does support a<br>
&gt; way to connect to a erlational database (I'm assuming this is<br>
&gt; what you are asking here?), but the zero-dollar version of that<br>
&gt; product is limited to a database of only one gigabyte of XML.<br>
<br>
Another option, eXist, provides a XQuery Extenesion module for SQL<br>
connections and queries. I would like to see the concepts from there<br>
eventually it into the EXPath/EXQuery efforts<br>
<span style='color:#888888'><br>
o<br>
<br>
--<br>
Adam Retter<br>
_______________________________________________<br>
<a href="mailto:talk@x-query.com">talk@x-query.com</a><br>
<a href="http://x-query.com/mailman/listinfo/talk" target="_blank">http://x-query.com/mailman/listinfo/talk</a></span><o:p></o:p></p>

</div>

<p class=MsoNormal><br>
<br>
<o:p></o:p></p>

<pre><o:p>&nbsp;</o:p></pre><pre style='text-align:center'>

<hr size=4 width="90%" align=center>

</pre><pre><o:p>&nbsp;</o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre><a
href="mailto:talk@x-query.com">talk@x-query.com</a><o:p></o:p></pre><pre><a
href="http://x-query.com/mailman/listinfo/talk">http://x-query.com/mailman/listinfo/talk</a><o:p></o:p></pre></div>

</body>

</html>