🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #863

Re: Updating a Recordset

#863
From: Mike
Date: Wed, 31 Jan 2001 21:43
25 lines
2468 bytes
"Mike" <mike.powell@transcore.com> wrote:

I think I identified a possible problem of mine that prevented me from updating the record sets. Is it true that InterBase select stored procedures return a read only record set? If this is the case, then that would certainly explain what I was seeing.


>
>"Mike" <mike.powell@transcore.com> wrote:
>
>I think I have narrowed down the "problem" to TClientDataSet's inability to become aware of the server side schema (e.g. table defs, referential and check constraints, etc).
>
>I seem to remember there being a post or three on the topic of ensuring that the client does become aware of the schema information. Where is this post or where are the resources to achieve this measure?
>
>Thanks in advance.
>
>>
>>Ok, I need to backup a step or two.
>>
>>I am trying to make changes to a record set in a multitier database configuration. The changes seem to post on the first time out, but subsequent attempts fail with "ClientDataSet: Must apply updates before refreshing data." It doesn't matter what I do, the changes seem to get stuck in the client data set.
>>
>>My environment is Windows 2000, InterBase 6.0, C++Builder Enterprise. I am using the typical 3-tier configuration with an IBTransaction, IBDatabase, IBUpdateSQL, IBQuery, and IBDataSetProvider in the middle tier. The client uses a SocketConnection, a ClientDataSet, and a DataSource. I am feeding a simple DBGrid in conjunction with a DBNavigator.
>>
>>I have a sample project setup with both client and server if someone would care to take a look. I'd greatly appreciate it. Thanks.
>>
>
Technical Details
Message-ID: <3a78871e$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed.mesh.ad.jp!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!207.105.83.65
References: <3a6db252$1_1@dnews> <3a75cd83$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,48f222a4e60f3490
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-01-31 13:50:23 PST
From: "Mike" <mike.powell@transcore.com>
Sender: "Mike" <mike.powell@transcore.com>
Reply-To: "Mike" <mike.powell@transcore.com>
Subject: Re: Updating a Recordset
Newsgroups: borland.public.cppbuilder.database.multi-tier
X-User-Info: 198.59.170.33 198.59.170.33    
References:  <3a6db252$1_1@dnews>   <3a75cd83$1_2@dnews> 
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3a78871e$1_1@dnews>
Date: 31 Jan 2001 13:43:58 -0800
X-Trace: 31 Jan 2001 13:43:58 -0800, 207.105.83.65
Lines: 26
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed.mesh.ad.jp!hub.org!hub.org!PeerFeed.KWeb.on.ca!bornews.borland.com!dnews!207.105.83.65