🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Editing records

#2802
From: Borut �u�tar
Date: Thu, 20 Mar 2003 21:34
106 lines
4918 bytes
OK! Thx! Now I understand!

"Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message
news:3e75f73e@newsgroups.borland.com...
> Yes. On client-side cursor (CursorLocation = clUseClient) ADO makes
updates
> by executing SQL commands like
>
> UPDATE TableName SET Col1 = NewValue WHERE Col1 = OldCol1Value AND Col2 =
> OldCol2Value ...
>
> In case you have no primary key and have rows with same values in all
> columns ADO can not locate row you want to update. Having primary key
should
> solve your problem.
>
> ----------------------------------------------------------------
> Regards,
> Viatcheslav V. Vassiliev
> http://www.oledbdirect.com
> The fastest way to access MS SQL Server, MS Jet (MS Access)
> and Interbase (through OLEDB) databases.
>
> "Borut Sustar" <borut@bokosoft.si> �������/�������� � �������� ���������:
> news:3e75a614@newsgroups.borland.com...
> >
> > No!Should i have it?
> > Borut
> >
> > "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message
> > news:3e74b678@newsgroups.borland.com...
> > > Do you have primary key (or at least unique index) on this table?
> > >
> > > ----------------------------------------------------------------
> > > Regards,
> > > Viatcheslav V. Vassiliev
> > > http://www.oledbdirect.com
> > > The fastest way to access MS SQL Server, MS Jet (MS Access)
> > > and Interbase (through OLEDB) databases.
> > >
> > > "Borut �u�tar" <borut@bokosoft.si> �������/�������� � ��������
> ���������:
> > > news:3e749aab@newsgroups.borland.com...
> > > > Error : 'ROW CANNOT BE LOCATED FOR UPDATING. SOME VALUES MAY HAVE
> > CHANGED
> > > > SINCE IT
> > > > WAS LAST READ'.
> > > >
> > > > "Borut �u�tar" <borut@bokosoft.si> wrote in message
> > > > news:3e749a74@newsgroups.borland.com...
> > > > > I can add (read only=false) records and delete them, but when i
try
> to
> > > > > change them an error is thrown!
> > > > >
> > > > >
> > > > >
> > > > > "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in
> message
> > > > > news:3e72e342@newsgroups.borland.com...
> > > > > > You should be able to edit record with these settings. Check
> > > > > > TADOTable.ReadOnly property.
> > > > > >
> > > > > > ----------------------------------------------------------------
> > > > > > Regards,
> > > > > > Viatcheslav V. Vassiliev
> > > > > > http://www.oledbdirect.com
> > > > > > The fastest way to access MS SQL Server, MS Jet (MS Access)
> > > > > > and Interbase (through OLEDB) databases.
> > > > > >
> > > > > >
> > > > > > "Borut �u�tar" <borut@bokosoft.si> �������/�������� � ��������
> > > > ���������:
> > > > > > news:3e723546@newsgroups.borland.com...
> > > > > > > Hello!
> > > > > > >
> > > > > > > I am using MSSQL, BCB6,ADO! Why isn't possible to edit records
> if
> > > this
> > > > > > > settings are used:
> > > > > > > -cursorLocation = clUserClient
> > > > > > > -Cursor Type = ctDynamic
> > > > > > > -Lock Type = ltOptimistic
> > > > > > > -Table direct = true;
> > > > > > > What settings should I use, to make it possible to edit
records
> > > (Table
> > > > > > which
> > > > > > > i am trying to edit is on local computer)!
> > > > > > >
> > > > > > > Thx in advance!
> > > > > > > Borut
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID: <3e7a33dd@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!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!news-out.spamkiller.net!propagator2-maxim!propagator3-maxim!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3e723546@newsgroups.borland.com> <3e72e342@newsgroups.borland.com> <3e749a74@newsgroups.borland.com> <3e749aab@newsgroups.borland.com> <3e74b678@newsgroups.borland.com> <3e75a614@newsgroups.borland.com> <3e75f73e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,ceee7eda211f906d
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-03-20 13:40:04 PST
Reply-To: "Borut �u�tar" <borut@bokosoft.si>
From: "Borut �u�tar" <borut@bokosoft.si>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3e723546@newsgroups.borland.com> <3e72e342@newsgroups.borland.com> <3e749a74@newsgroups.borland.com> <3e749aab@newsgroups.borland.com> <3e74b678@newsgroups.borland.com> <3e75a614@newsgroups.borland.com> <3e75f73e@newsgroups.borland.com>
Subject: Re: Editing records
Date: Thu, 20 Mar 2003 22:34:14 +0100
Lines: 108
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: 194.249.11.142
Message-ID: <3e7a33dd@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048196061 194.249.11.142 (20 Mar 2003 13:34:21 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!diablo.voicenet.com!news-out.spamkiller.net!propagator2-maxim!propagator3-maxim!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail