Thread View: borland.public.cppbuilder.database.multi-tier
4 messages
4 total messages
Started by Gaetano Piazza
Tue, 24 Oct 2000 00:00
learning MIDAS
Author: Gaetano Piazza
Date: Tue, 24 Oct 2000 00:00
Date: Tue, 24 Oct 2000 00:00
34 lines
2262 bytes
2262 bytes
Now I am learning how to use multi tier in c++Builder and I have some difficulties, so I need your help, thank you! I have done the following steps: 1. I have created a new application project, and save it as "ProjectServer"; 2. In this project I have created a new remote data module by choosing it from Menu File-New-Multitier-Remote Data Module, and save it as "ServerDataModule" 3. I have added a DataSetProvider and a Table components (named DataSetProvider1 and Table1) in this remote data module; 4. I have done the following assignments: Table1->DatabaseName = DefaultDD; Table1->TableName = bdesdd.db; DataSetProvider1->DataSet = Table1; 5. I have compiled and executed the project; 6. In addition I have registered the server with the following line command from Start-Execute: C:\Programmi\Borland\CBuilder5\Projects\ProjectServer.exe /regserver 7. I have created another application project named ProjectClient; 8. I have added in that project a ClientDataSet and a DCOMConnection components (named ClientDataSet1 and a DCOMConnection1) 9. I have done the following assignments: DCOMConnection1->ServerName = ProjectServer.ServerDataModule (I have chosen the unique name appeared in the combobox list); DCOMConnection1->ComputerName = <the same computer name where I was working>; ClientDataSet1->RemoteServer = DCOMConnection1; 10. Thus when I tried to assign ClientDataSet1->ProviderName, or when I tried to assign DCOMConnection1->Connected = true, has appeared the following operating system error message: "Server execution failed". This message could be a bit different in English operating system version because I translated it from Italian "Esecuzione del server non riuscita". Thank you for your help. Tano Piazza (from Italy)
R: learning MIDAS
Author: Gaetano Piazza
Date: Tue, 24 Oct 2000 00:00
Date: Tue, 24 Oct 2000 00:00
10 lines
1010 bytes
1010 bytes
Gaetano Piazza <gapsoft@tin.it> wrote in message 39f540f8$1_2@dnews... > Now I am learning how to use multi tier in c++Builder and I have some > difficulties, so I need your help, thank you! I have just found the solution. I have included an empty main form in the server project and now the server starts regularly. However I don't understand why changes mades with client module don't be applied to the serever table, do you help me, please? Thank you for your help. Tano Piazza (from Italy)
Re: R: learning MIDAS
Author: Nick Rambarransingh
Date: Tue, 24 Oct 2000 00:00
Date: Tue, 24 Oct 2000 00:00
20 lines
1372 bytes
1372 bytes
Bonjourno (excuse the bad written Italian) > ..However I don't understand why changes mades with client module don't be > applied to the > serever table, do you help me, please? In the client application, you need to say ClientModule1->ClientDataSet1->ApplyUpdates(-1); This will force a commit to the database. Also, you may not want to treat the DB Updates on the client, you may want to do that on the server. As a result, go to your server application and play around with DataModule->DataSetProvider options. You will see an option to "Resolve to dataset = True/False". Play around with this switch and take a look at what happens when you try the ApplyUpdates from your client. You will notice that the ApplyUpdates(-1) behaves differently. Good Luck Nick, Borland forever ...
Re: learning MIDAS
Author: Steve Vu
Date: Wed, 15 Nov 2000 00:00
Date: Wed, 15 Nov 2000 00:00
52 lines
2850 bytes
2850 bytes
Hi Gaetano, Can you try to have the client running on another machine?. I have a problem when I do that. After I enter the guid to the DCOMConnection1, the Servername is blank in the combo box. In addition, after I entered the computername and change active to true, I received an error message "Access Invalid". If you or anyone know what I did wrong please help. Thanks. Steve Gaetano Piazza <gapsoft@tin.it> wrote in message news:39f540f8$1_2@dnews... > Now I am learning how to use multi tier in c++Builder and I have some > difficulties, so I need your help, thank you! > I have done the following steps: > 1. I have created a new application project, and save it as "ProjectServer"; > 2. In this project I have created a new remote data module by choosing it > from Menu File-New-Multitier-Remote Data Module, and save it as > "ServerDataModule" > 3. I have added a DataSetProvider and a Table components (named > DataSetProvider1 and Table1) in this remote data module; > 4. I have done the following assignments: > Table1->DatabaseName = DefaultDD; > Table1->TableName = bdesdd.db; > DataSetProvider1->DataSet = Table1; > 5. I have compiled and executed the project; > 6. In addition I have registered the server with the following line command > from Start-Execute: > C:\Programmi\Borland\CBuilder5\Projects\ProjectServer.exe /regserver > 7. I have created another application project named ProjectClient; > 8. I have added in that project a ClientDataSet and a DCOMConnection > components (named ClientDataSet1 and a DCOMConnection1) > 9. I have done the following assignments: > DCOMConnection1->ServerName = ProjectServer.ServerDataModule (I have chosen > the unique name appeared in the combobox list); > DCOMConnection1->ComputerName = <the same computer name where I was > working>; > ClientDataSet1->RemoteServer = DCOMConnection1; > 10. Thus when I tried to assign ClientDataSet1->ProviderName, or when I > tried to assign DCOMConnection1->Connected = true, has appeared the > following operating system error message: "Server execution failed". This > message could be a bit different in English operating system version because > I translated it from Italian "Esecuzione del server non riuscita". > > Thank you for your help. > Tano Piazza (from Italy) > > > >
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