Article View: borland.public.cppbuilder.database.ado
Article #236Extracting XML record via ADO
From: Gordon
Date: Fri, 27 Jul 2007 15:51
Date: Fri, 27 Jul 2007 15:51
30 lines
2132 bytes
2132 bytes
Hi. I am trying to extract the results of a stored procedure on SQLServer2000 which returns XML via "FOR XML EXPLICIT". I am using BCB5 with MDAC 2.8. I have tried two approaches, neither of which work, and I can't find anything in this group's archive that works either, nor elsewhere on the Web or in my books. Running the SPROC from QueryAnalyser produces the correct results, as does extracting it via ADO in an ASP page, so I'm certain this is a BCB issue rather than a generic ADO issue. First, I can exec the SPROC and it returns a recordset. I can access the BLOBs in the record set and extract them via a blobstream, but they appear to contain data that is UNICODE (ish) and NOT in XML format. It's almost as if it is data in a binary format with the correct text interspersed. Not a hint of an XML element to be seen though. The second approach was to set the "Output Stream" property of an ADOCommand object as you would in VB or ASP, but I can't seem to find a way to do that. Every method I try results in an exception and there doesn't appear to be any documentation on _di_Properties or _di_Property_ anywhere that I can find. Can anyone help on this? Thanks very much. Kind ergards Gordon
Technical Details
Message-ID:
<46aa1490$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.87.MISMATCH!news.astraweb.com!border2.a.newsrouter.astraweb.com!feeder.news-service.com!feeder.news-service.com!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,2e12f321ea808145,start X-Google-Attributes: gid10698b,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: gdooley@update.co.uk (Gordon) Newsgroups: borland.public.cppbuilder.database.ado Subject: Extracting XML record via ADO X-Newsreader: Nomad News 2.10 (http://www.nomadnews.com) NNTP-Posting-Host: 212.169.42.20 Message-ID: <46aa1490$1@newsgroups.borland.com> Date: 27 Jul 2007 08:51:44 -0700 X-Trace: newsgroups.borland.com 1185551504 212.169.42.20 (27 Jul 2007 08:51:44 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.87.MISMATCH!news.astraweb.com!border2.a.newsrouter.astraweb.com!feeder.news-service.com!feeder.news-service.com!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail