Article View: borland.public.cppbuilder.database.ado
Article #3117Problem with initializing a TADOCommand
From: Kovalenko Dmitry
Date: Thu, 19 Dec 2002 17:01
Date: Thu, 19 Dec 2002 17:01
31 lines
2021 bytes
2021 bytes
Hi All. Why installation TADOCommand::Connection does not initialize a command ? If delete line with CommandText=L" ", the command property list will be empty. Though connection object was stated. This orderly? ------------- auto_ptr<TADOConnection> cn(new TADOConnection(NULL)); cn->LoginPrompt=false; cn->ConnectionString=L"file name=employee.ibp"; cn->Open(); auto_ptr<TADOCommand> cmd(new TADOCommand(NULL)); cmd->Connection=cn.get(); // if delete next line then count_props will be zero !!! cmd->CommandText=L" "; LONG count_props=cmd->CommandObject->Properties->Count; -------------- When working through ADODB directly, for initializing a command sufficiently to install ADODB.Command.ActiveConnection. -------------- Dmitry Kovalenko http://ibp.lcpi.lipetsk.ru
Technical Details
Message-ID:
<1040316948.643655@sunflower.loc>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,496f378be2350ad2,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-12-19 09:09:52 PST From: "Kovalenko Dmitry" <dima@lcpi.lipetsk.ru> Newsgroups: borland.public.cppbuilder.database.ado Subject: Problem with initializing a TADOCommand Date: Thu, 19 Dec 2002 20:01:37 +0300 Lines: 32 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Organization: LCPI Message-ID: <1040316948.643655@sunflower.loc> Cache-Post-Path: sunflower.loc!unknown@main.gdi.loc X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Host: 195.34.226.161 X-Trace: newsgroups.borland.com 1040317521 195.34.226.161 (19 Dec 2002 09:05:21 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail