Re: Can't use "FOR XML" query w/ _RecordsetPtr?
- From: "Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom>
- Date: Tue, 27 Jun 2006 13:37:41 +0100
Does not _RecordsetPtr support the "FOR XML" clause?
RecordsetPtr has nothing to do with it. What matters is whether the database
supports it as it the database that will execute the SQL not the
RecordsetPtr. That is also true for _ANY_ SQL. It is dependent on the
underlying database, not ADO. For example
SELECT TOP 20 * FROM table1
will work with SQL Server but not Access as it does not support the "TOP n"
clause.
All RecordsetPtr does is act as an underlying container for any resultant
rowsets and presents some interface functionality for viewing the rowsets
and properties.
Returning to your point: SQL Server 7.0, 2000 & 2005 support this and with
MDAC 2.6+ Streams it should be easy.
All the articles I have seen have retrieved results into Streams not
RecordSets.
Here is an article on doing this
http://support.microsoft.com/kb/q271620/
Also see VBScript at bottom of
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adosql/adoprg03_6coj.asp
Stephen Howe
.
- Follow-Ups:
- Re: Can't use "FOR XML" query w/ _RecordsetPtr?
- From: Daniel Crichton
- Re: Can't use "FOR XML" query w/ _RecordsetPtr?
- References:
- Can't use "FOR XML" query w/ _RecordsetPtr?
- From: t-rex
- Can't use "FOR XML" query w/ _RecordsetPtr?
- Prev by Date: Re: Large varchar columns with SQL server
- Next by Date: Re: Error 3265 mystery error
- Previous by thread: Can't use "FOR XML" query w/ _RecordsetPtr?
- Next by thread: Re: Can't use "FOR XML" query w/ _RecordsetPtr?
- Index(es):
Relevant Pages
|
|