Article View: comp.lang.pascal.delphi.databases
Article #120Re: UpdateSQL complains that table is read-only!!!
From: Mark Pauker
Date: Thu, 13 Aug 1998 00:00
Date: Thu, 13 Aug 1998 00:00
19 lines
1597 bytes
1597 bytes
>For the second, when I ApplyUpdates, it does its stuff and comes up >with an error message saying 'The table is read-only'. >This does not cause an OnUpdateError event. This message is displayed whenever the UpdateAction variable is not set to uaApplied within the UpdateRecord handler, regardless of the cause. Unfortunately, Delphi doesn't attempt to pass information about the actual error that occurred (if any) back through the callback mechanism. The read-only "error" does not refer to anything that you've done. Rather, it refers to the original condition that caused the BDE to call the UpdateRecord handler in the first place. (Remember, your dataset is read-only, which is why you are supplying your own posting routines. When the BDE believes that you've failed to apply the update yourself, it simply tells you: "Hey! This is a readonly dataset-- You need to apply the updates.") -- Mark
Technical Details
Message-ID:
<4oEA1.9975$St4.4368521@news.mci2000.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<35cff9a5.2564257@newsread.ed.ac.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffff5,89a499a7eebf394e X-Google-Attributes: gidffff5,public X-Google-Thread: 10de66,89a499a7eebf394e X-Google-Attributes: gid10de66,public From: "Mark Pauker" <mpauker@mci2000.com> Subject: Re: UpdateSQL complains that table is read-only!!! Date: 1998/08/13 Message-ID: <4oEA1.9975$St4.4368521@news.mci2000.com> X-Deja-AN: 380786952 References: <35cff9a5.2564257@newsread.ed.ac.uk> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: MCI2000 NNTP-Posting-Date: Thu, 13 Aug 1998 16:21:20 GMT Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.database.sqlservers