Thread View: borland.public.cppbuilder.database.multi-tier
3 messages
3 total messages
Started by Mike
Tue, 23 Jan 2001 16:33
Updating a Recordset
Author: Mike
Date: Tue, 23 Jan 2001 16:33
Date: Tue, 23 Jan 2001 16:33
8 lines
1591 bytes
1591 bytes
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.
Re: Updating a Recordset
Author: Mike
Date: Mon, 29 Jan 2001 20:07
Date: Mon, 29 Jan 2001 20:07
18 lines
2150 bytes
2150 bytes
"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. >
Re: Updating a Recordset
Author: Mike
Date: Wed, 31 Jan 2001 21:43
Date: Wed, 31 Jan 2001 21:43
25 lines
2468 bytes
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. >> >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads