Re: Limitations of OPENXML support in SQL Server

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John Kotuby (jkotuby_at_snet.net)
Date: 07/20/04


Date: Tue, 20 Jul 2004 11:24:18 -0400

Thanks SriSamp...
Back to the books I guess. I have heard this technology mentioned more than
once and will investigate it further.

"SriSamp" <ssampath@sct.co.in> wrote in message
news:%23oTKtDfbEHA.1152@TK2MSFTNGP09.phx.gbl...
> Check out if SQLXML can help you out. SQLXML moves the XML management out
of
> SQL Server and helps you write the same in the application layer.
> Check out:
>
http://www.microsoft.com/downloads/details.aspx?FamilyId=4C8033A9-CF10-4E22-8004-477098A407AC&displaylang=en
> --
> HTH,
> SriSamp
> Please reply to the whole group only!
> http://www32.brinkster.com/srisamp
>
> "John Kotuby" <jkotuby@snet.net> wrote in message
> news:uiK77WdbEHA.1248@TK2MSFTNGP11.phx.gbl...
> > I have spent considerable time creating an ASP page that uses ADO and a
> very
> > complicated FOR XML EXPLICIT query to create an XML data stream and send
> it
> > to a remote browser. The XML created is almost always greater than 8000
> > characters Here is where the problem(s) begin for me.
> >
> > I have experience with using VB, VBScript, ADO and Transact SQL, in
> > programming solutions, but not using XML as a data source. I need to
find
> a
> > way to get that XML data into existing SQL tables. I will be programming
> in
> > VB (using a browser control). The XML data is from several (8) related
> > tables. I have shaped the XML so that the Elements represent the tables
> and
> > the Attributes represent the field values of the columns.
> >
> > I was planning to use OPENXML with an Xpath pattern (such as
> > '/root/customers/orders') to open the data specific to a particular
table
> > and then update or insert records as necessary.
> >
> > However any OPENXML examples I see are used in concert with
> > "sp_xml_preparedocument @hdoc OUTPUT, @doc", and we know that the
maximum
> > size for a local SQL variable is 8000 chars.
> >
> > So here I am with a complete streamed XML document in my Browser control
> in
> > memory. Is there a way to get a file handle from this "stream" to pass
to
> > OPENXML?
> >
> > If not, maybe I should just pass the XML as a file to the browser and
have
> > the program save it to a predefined location. But, once again the
document
> > will be larger than 8k. I have seen no example that allows passing of a
> file
> > name to sp_xml_preparedocument.
> >
> > I have seen SQLXMLBulkLoad used by passing a schema filename and a data
> > filename. Maybe I can create staging tables to hold the results of the
> bulk
> > load and then process the data from there.
> >
> >
> >
>
>



Relevant Pages

  • Re: Nature of XML (ramblings)
    ... > HTML as a programming languages, but recently I have written a lot of ... The fact that the SQL and HTML may be in quotes inside ... Ada is such a thing whereas SQL, XML and HTML are not. ...
    (comp.lang.ada)
  • Re: Deviation from object-relational mapping (pySQLFace)
    ... metadata in XML files. ... plain ol' SQL throughout, ... XML is independent from both the programming language API-s and the ... RDBMS specific 'retrieve the metadata' solutions. ...
    (comp.lang.python)
  • Re: Annotated schema with views?
    ... we do support attribute groups in SqlXml. ... construct one Xml document.instead of executing one complex query. ... increases with the square of complex type elements. ... > doing I can add it to the parent element's contents. ...
    (microsoft.public.sqlserver.xml)
  • Re: Annotated schema with views?
    ... There are no plans for using FOR XML PATH for SQL 2005. ... In Sql 2005, there are no changes in the way SQLXML generate queries. ... For the complexity brought by the elements, if you use simple type elements ...
    (microsoft.public.sqlserver.xml)
  • Re: SQLOLEDB vs. MSDASQL
    ... > with SQLXML. ... SQL syntax should not be an issue. ... Of course, even if the difference is subtle, it may still be important. ... Since you mention XML, there is one case where there is an important ...
    (microsoft.public.data.oledb)