Article View: borland.public.cppbuilder.database.ado
Article #132ADOCommand properties not available
From: Gordon
Date: Fri, 19 Oct 2007 11:21
Date: Fri, 19 Oct 2007 11:21
31 lines
1804 bytes
1804 bytes
Hi. This relates to a post I made back in July. I am trying to set the "Output Stream" property on a TADOCommand object in BCB5 in order to retrieve output from SQLServer generated by SELECT...FOR XML. I understand that I need to set the property before I execute the command, but I find that the Properties->Count value before I execute the command is 0 and the property does not exist. After the command is executed the Properties->Count value is 90 and the "Output Stream" property does exist. Sample code below. My question is, how can I set the TADOCommand property before executing the command? Any advice would be gratefully received as I've been struggling with this off and on for three months. Thanks very much Gordon --------- sample code .. ADOCommand2->Properties->Refresh(); i = ADOStoredProc1->Properties->Count; // i = zero ADOCommand2->Execute(); ADOCommand2->Properties->Refresh(); i = ADOStoredProc1->Properties->Count; // i = 90 and "Output Stream" param exists
Technical Details
Message-ID:
<4718932f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!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,167b000f74cc44,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: ADOCommand properties not available X-Newsreader: Nomad News 2.10 (http://www.nomadnews.com) NNTP-Posting-Host: 212.169.42.20 Message-ID: <4718932f@newsgroups.borland.com> Date: 19 Oct 2007 04:21:19 -0700 X-Trace: newsgroups.borland.com 1192792879 212.169.42.20 (19 Oct 2007 04:21:19 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail