Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO call to SP with FOR XML

Status
Not open for further replies.

NevG

Programmer
Oct 10, 2000
162
GB
Hi gang

Having serious mind meltdown ...

I am calling an SP that has aFOR XML Clause in it

How can I say

strVar = adoCommand.execute

to get the XML string back as a result set..

total meltdown here

Thanks

NG
 
Try something like this:
Code:
Dim adoCmd As ADODB.Command
Dim adoStream As ADODB.Stream

adoCmd.CommandText = sSQL
adoStream.Open
adoCmd.Properties("Output Stream").Value = adoStream
adoCmd.Execute , , adExecuteStream
sReturnXML = adoStream.ReadText
Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top