🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Multiple Recordsets from a Single Expression ?

#3277
From: Peter Moscatt
Date: Sun, 13 Oct 2002 22:23
85 lines
3976 bytes
G'Day Vassiliev,

How's it go'n over there ?

Well, I have changed to ADOQuery but still end up with the same problem.

The command I'm issuing is:

cmdStr = "INSERT INTO MACHINE(Serial_Number,Model_Code,EqptNo) VALUES ('" + ADODataSetLocal->FieldValues["Serial_Number"] + "','" + ADODataSetLocal->FieldValues["Model_Code"] + "','" + ADODataSetLocal->FieldValues["EqptNo"] + "')";

Make any sense out of it ?

Pete



"Vassiliev V.V." <news@vassilievvv.mtu-net.ru> wrote:
>Could you send here the value of str (not code, but string that is assigned
>to CommandText)?
>You may have, for example, superfluous "," or ";". Check also that you
>insert as much values as you have columns in MACHINE table.
>
>----------------------------------------------------------------
>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:3da5fb5b$1@newsgroups.borland.com...
>>
>> 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: <3da9f25c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!intgwlon.nntp.telstra.net!news.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3da0fa4c$1@newsgroups.borland.com> <3da1233a@newsgroups.borland.com> <3da5fb5b$1@newsgroups.borland.com> <3da66830@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-13 15:34:01 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: 211.26.2.33 211.26.2.33    
References: <3da0fa4c$1@newsgroups.borland.com> <3da1233a@newsgroups.borland.com> <3da5fb5b$1@newsgroups.borland.com> <3da66830@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3da9f25c$1@newsgroups.borland.com>
Date: 13 Oct 2002 15:23:24 -0700
X-Trace: newsgroups.borland.com 1034547804 207.105.83.65 (13 Oct 2002 15:23:24 -0700)
Lines: 86
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!intgwlon.nntp.telstra.net!news.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail