Article View: borland.public.cppbuilder.database.ado
Article #3272Re: Multiple Recordsets from a Single Expression ?
From: Vassiliev V.V.
Date: Fri, 11 Oct 2002 05:22
Date: Fri, 11 Oct 2002 05:22
65 lines
3429 bytes
3429 bytes
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:
<3da66830@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!out.nntp.be!propagator-SanJose!news-in-sanjose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3da0fa4c$1@newsgroups.borland.com> <3da1233a@newsgroups.borland.com> <3da5fb5b$1@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 23:06:03 PST From: "Vassiliev V.V." <news@vassilievvv.mtu-net.ru> Newsgroups: borland.public.cppbuilder.database.ado References: <3da0fa4c$1@newsgroups.borland.com> <3da1233a@newsgroups.borland.com> <3da5fb5b$1@newsgroups.borland.com> Subject: Re: Multiple Recordsets from a Single Expression ? Date: Fri, 11 Oct 2002 09:22:22 +0400 Lines: 67 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 212.188.96.181 Message-ID: <3da66830@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1034315824 212.188.96.181 (10 Oct 2002 22:57:04 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!out.nntp.be!propagator-SanJose!news-in-sanjose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail