🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Strange OLE-DB error

#1545
From: Viatcheslav V. Vassiliev
Date: Thu, 13 May 2004 07:03
103 lines
3373 bytes
Probably you have no key on table that you update, you one of your values
violates constraints (set NULL into field that does not allows nulls, string
is too long, foreign key is violated etc.).

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 +
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Palmetzhofer Dietmar" <xxremovethisxx_dietmar.palmetzhofer@boku.ac.at>
�������/�������� � �������� ���������:
news:40a2943c@newsgroups.borland.com...
> I am making an update-Operation in an TADOQuery using Parameters.
> The first time I am executing the statement, everything works fine.
> But when I am trying to do the same thing a second time, I�ll get the
> following
> error:
> "Error in an OLE-DB operation, consisting of of more than one step"
> (the message is in german, so the translation might not be correct;
> the german message is:
> "Fehler bei einer aus meheren Schritten bestehenden OLE-DB Operation")
> I am using BCB 6.0 against a MSAccess 2000 database.
>
> Here is the statement:
> UPDATE CONES_AuswSystemleistung
>
> SET
>
> Ausw_ZeitbedarfMontage= :DauerMobilkranSum,
>
> Ausw_ProduktivitaetFaellung= :Prodf,
>
> Ausw_ProduktivitaetRueckung= :Prodr,
>
> Ausw_EntnahmeVolumen= :Nutzunglfm,
>
> Ausw_ZeitmdP0= :DauerMobilkranP0,
>
> Ausw_ZeitmdP1= :DauerMobilkranP1,
>
> Ausw_ZeitmdP2= :DauerMobilkranP2,
>
> Ausw_ZeitmdP3= :DauerMobilkranP3,
>
> Ausw_ZeitmdP4= :DauerMobilkranP4,
>
> Ausw_ZeitmdP5= :DauerMobilkranP5,
>
> Ausw_ZeitmdP6= :DauerMobilkranP6,
>
> Ausw_ProdfP0= :ProdfP0,
>
> Ausw_ProdfP1= :ProdfP1,
>
> Ausw_ProdfP2= :ProdfP2,
>
> Ausw_ProdfP3= :ProdfP3,
>
> Ausw_ProdfP4= :ProdfP4,
>
> Ausw_ProdfP5= :ProdfP5,
>
> Ausw_ProdfP6= :ProdfP6,
>
> Ausw_ProdrP0= :ProdrP0,
>
> Ausw_ProdrP1= :ProdrP1,
>
> Ausw_ProdrP2= :ProdrP2,
>
> Ausw_ProdrP3= :ProdrP3,
>
> Ausw_ProdrP4= :ProdrP4,
>
> Ausw_ProdrP5= :ProdrP5,
>
> Ausw_ProdrP6= :ProdrP6,
>
> Ausw_NutzVlfmP0= :NutzunglfmP0,
>
> Ausw_NutzVlfmP1= :NutzunglfmP1,
>
> Ausw_NutzVlfmP2= :NutzunglfmP2,
>
> Ausw_NutzVlfmP3= :NutzunglfmP3,
>
> Ausw_NutzVlfmP4= :NutzunglfmP4,
>
> Ausw_NutzVlfmP5= :NutzunglfmP5,
>
> Ausw_NutzVlfmP6= :NutzunglfmP6
>
> WHERE
>
> Ausw_Szenarionr= :Szenarionr;
>
> Hope, someone can help!
>
>
>
Technical Details
Message-ID: <40a31daf@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40a2943c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,2bb8ad5b7269d7e9
X-Google-Attributes: gid10698b,public
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40a2943c@newsgroups.borland.com>
Subject: Re: Strange OLE-DB error
Date: Thu, 13 May 2004 11:03:13 +0400
Lines: 105
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.234.218.42
Message-ID: <40a31daf@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084431791 213.234.218.42 (13 May 2004 00:03:11 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail