🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multiple Recordsets from a Single Expression ?

#3270
From: Peter Moscatt
Date: Thu, 10 Oct 2002 22:12
46 lines
2614 bytes
G'Day Vassiliev,

Gave it a try but still have the same error occuring.

Pete



"Vassiliev V.V." <news@vassilievvv.mtu-net.ru> wrote:
>Place eoExecuteNoRecords into ExecuteOptions property of ADODataSetRemote.
>If this does not help, provide command text, like
>
>str = "INSERT INTO MACHINE VALUES ('" +
>ADODataSetLocal->FieldValues["Serial_Number"] + "','TO30',1,'1','" +
>ADODataSetLocal->FieldValues["Model_Code"] + "','1','0.0.0.0','" +
>ADODataSetLocal-FieldValues["EqptNo"] + "',1)";
>
>ADODataSetRemote->CommandText = str;
>
>Write here the value of str.
>
>----------------------------------------------------------------
>Regards,
>Viatcheslav V. Vassiliev
>http://www.oledbdirect.com
>The fastest way to access MS SQL Server and MS Jet (MS Access) databases.
>
>"Peter Moscatt" <pgmoscatt@optushome.com.au> �������/�������� � ��������
>���������: news:3da0fa4c$1@newsgroups.borland.com...
>>
>> I am trying to write data to an Access database using the code shown below
>but get a runtime error saying "Current provider does not support returning
>multiple recordsets from a single expression."
>>
>> The provider is set to: Microsoft.Jet.OLEDB.4.0
>>
>> How do I get around this problem ?
>>
>> Pete
>>
>> ADODataSetRemote->CommandText = "INSERT INTO MACHINE VALUES ('" +
>ADODataSetLocal->FieldValues["Serial_Number"] + "','TO30',1,'1','" +
>ADODataSetLocal->FieldValues["Model_Code"] + "','1','0.0.0.0','" +
>ADODataSetLocal->FieldValues["EqptNo"] + "',1)";
>
>
Technical Details
Message-ID: <3da5fb5b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail
References: <3da0fa4c$1@newsgroups.borland.com> <3da1233a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,85e61ef802f7259b
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-10-10 15:20:19 PST
From: "Peter Moscatt" <pgmoscatt@optushome.com.au>
Sender: "Peter Moscatt" <pgmoscatt@optushome.com.au>
Reply-To: "Peter Moscatt" <pgmoscatt@optushome.com.au>
Subject: Re: Multiple Recordsets from a Single Expression ?
Newsgroups: borland.public.cppbuilder.database.ado
X-User-Info: 203.2.231.20 203.2.231.20    
X-Forwarded-For: 203.2.231.2
References: <3da0fa4c$1@newsgroups.borland.com> <3da1233a@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3da5fb5b$1@newsgroups.borland.com>
Date: 10 Oct 2002 15:12:43 -0700
X-Trace: newsgroups.borland.com 1034287963 207.105.83.65 (10 Oct 2002 15:12:43 -0700)
Lines: 48
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!newsgroups.borland.com!not-for-mail