🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #3074

Re: TADOQuery::ExecuteOptions property

#3074
From: Mike Skelton
Date: Thu, 12 Dec 2002 14:22
75 lines
3864 bytes
Viatcheslav,
    I think I understand the different values which the ExecuteOptions can
be set to. What I don't understand is how to actually ASSIGN them to the
ExecuteOptions property! I have tried all of the following statement
structures:

1.)
qry->ExecuteOptions << eoAsyncExecute     // works for other set-style
properties in Borland
2.)
qry->ExecuteOptions = qry->ExecuteOptions << eoAsyncExecute     // your tip
3.)
TExecuteOptions eo;
eo << eoAsyncExecute;     // if I inspect eo, it DOES actually contain
eoAsyncExecute at this point
qry->ExecuteOptions = eo;     // woops, where did it go?

Each attempt always yields the same result: the ExecuteOptions property
seems to be empty (contains the null byte, "\0"). I'm almost convinced this
has to be a bug, because I CAN modify the ExecuteOptions property of a
TADOCommand object. Any ideas how I could confirm or dispel this with
Borland? At any rate, thanks for your response.

-Mike

"Vassiliev V.V." <news@vassilievvv.mtu-net.ru> wrote in message
news:3df86103@newsgroups.borland.com...
> Try use eoExecuteNoRecords for SQL statements that do not return recordset
> such as delete statement. Also
>
> qry->ExecuteOptions = qry->ExecuteOptions << eoAsyncExecute
>
> can help.
>
> ----------------------------------------------------------------
> Regards,
> Viatcheslav V. Vassiliev
> http://www.oledbdirect.com
> The fastest way to access MS SQL Server, MS Jet (MS Access)
> and Interbase (LCPI provider, http://www.lcpi.lipetsk.ru) databases.
>
> "Mike Skelton" <MSkelton@vrms.com> �������/�������� � �������� ���������:
> news:3df7b98a$1@newsgroups.borland.com...
> > Hello everyone,
> >     I'm having difficulty setting the ExecuteOptions property of a
> TADOQuery
> > object. Is this a known bug or is anyone else experiencing the same
> problem?
> > What I'm trying to accomplish is the execution of an SQL delete
statement
> > asynchronously on a database server. I've toyed around with the
> > CursorLocation, CursorType, and various other properties to see if I
need
> a
> > certain combination, but to no avail. Each time I attempt to set the
> > ExecuteOptions property (using the << operator for the Set container,
for
> > example, "qry->ExecuteOptions << eoAsyncExecute"), I simply get "\0" as
a
> > value. What gives!?! I'm able to use different ExecuteOptions with
> instances
> > of TADOConnection and TADOCommand objects, however TADOQuery doesn't
seem
> to
> > respond to modifying this property.  My data provider is MSDASQL. If
> anyone
> > can confirm this as a bug or tell me what I'm doing wrong, I'd really
> > appreciate it.
> >
> > Thanks
> > -Mike
> >
> >
>
>
Technical Details
Message-ID: <3df89c20$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!uunet!sea.uu.net!sac.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3df7b98a$1@newsgroups.borland.com> <3df86103@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,a81e2d478309b60c
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-12-12 06:30:46 PST
From: "Mike Skelton" <MSkelton@vrms.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3df7b98a$1@newsgroups.borland.com> <3df86103@newsgroups.borland.com>
Subject: Re: TADOQuery::ExecuteOptions property
Date: Thu, 12 Dec 2002 09:22:13 -0500
Lines: 77
Organization: VRMS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4920.2300
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300
NNTP-Posting-Host: 209.140.211.97
Message-ID: <3df89c20$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1039703072 209.140.211.97 (12 Dec 2002 06:24:32 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!uunet!sea.uu.net!sac.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail