Article View: borland.public.cppbuilder.database.multi-tier
Article #1375Re: TProvider - TClientDataSet database update problem
From: John Graham
Date: Thu, 16 Dec 1999 00:00
Date: Thu, 16 Dec 1999 00:00
34 lines
2190 bytes
2190 bytes
Walter, I ran into this problem recently. The table I was trying to update, which is also updated by other applications, had a TimeDate field containing milliseconds. I used a TDbEdit control to enter a new date. When I attempted to update the table field I got the same error you're getting. Our solution was to remove the milliseconds from all rows in that table and modify the routine(s) that wrote to that field. This may not exactly match your problem, but you should see what fields are giving you difficulty in the error dialog. Check the actual contents of the field(s) in the table to see what's there, then check what your code is actually supplying to the field(s). Regards, John Walter Sciotti wrote: > I have a TQuery on my server with an associated TUpdateSQL object to handle > updates to existing records. This exported via a TProvider. A TClientDataSet > on the client connects to it. > > The problem is this: I can read the data and display it, no problem. But > when I make a change to the data and call ApplyUpdates(-1) on the > TClientDataSet I get an exception: "Record changed by another user." But it > hasn't been changed and the record remains unchanged in the database. > > Other times no exception is thrown, but the data is still unchanged. And, > rarely, the data actually gets updated without any exception being thrown. > > There is nothing wrong with the SQL statements involved. Other TQuery's, > etc., on the same interface on the same server work fine: they fetch and > update data just like they're supposed to. > > Any ideas?
Technical Details
Message-ID:
<3858FF33.B433062A@salts.navy.mil>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<82g9ro$25o19@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,dc09a63e5c46859c X-Google-Attributes: gidfcd2b,public From: John Graham <jgraham@salts.navy.mil> Subject: Re: TProvider - TClientDataSet database update problem Date: 1999/12/16 Message-ID: <3858FF33.B433062A@salts.navy.mil> X-Deja-AN: 561537392 Content-Transfer-Encoding: 7bit References: <82g9ro$25o19@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: U. S. Navy SALTS Project Mime-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier