 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Keith Guest
|
Posted: Fri Jun 09, 2006 4:02 pm Post subject: update only one table |
|
|
I have a dbgrid that links to adoquery, which reads multiple tables, then
user edit data in the dbgrid, how to update only one table and do not make
any changes to other tables?
Hope you understand me, if not, pls let me know.
thank you in advance. |
|
| Back to top |
|
 |
Darren Guest
|
Posted: Fri Jun 09, 2006 8:14 pm Post subject: Re: update only one table |
|
|
in Before Post ...
(Dataset as TADODataset).Properties['Unique Table'].Value := 'MyTable';
"Keith" <support (AT) borlandbbs (DOT) cn> wrote in message
news:44895551 (AT) newsgroups (DOT) borland.com...
| Quote: | I have a dbgrid that links to adoquery, which reads multiple tables, then
user edit data in the dbgrid, how to update only one table and do not make
any changes to other tables?
Hope you understand me, if not, pls let me know.
thank you in advance.
|
|
|
| Back to top |
|
 |
Vitali Kalinin Guest
|
Posted: Fri Jun 09, 2006 9:14 pm Post subject: Re: update only one table |
|
|
"Darren" <D arren @pclegends.com> сообщил/сообщила в новостях следующее:
news:44899062$1 (AT) newsgroups (DOT) borland.com...
| Quote: | in Before Post ...
(Dataset as TADODataset).Properties['Unique Table'].Value := 'MyTable';
Are you sure that it will work for Updates and Inserts? AFAIK While Unique |
Table is set, the Delete method affects only the named table. The AddNew,
Resync, Update, and UpdateBatch methods affect any appropriate underlying
base tables of the Recordset. |
|
| Back to top |
|
 |
Darren Guest
|
Posted: Fri Jun 09, 2006 9:34 pm Post subject: Re: update only one table |
|
|
Make the fields you don't want changed read only.
"Keith" <support (AT) borlandbbs (DOT) cn> wrote in message
news:44895551 (AT) newsgroups (DOT) borland.com...
| Quote: | I have a dbgrid that links to adoquery, which reads multiple tables, then
user edit data in the dbgrid, how to update only one table and do not make
any changes to other tables?
Hope you understand me, if not, pls let me know.
thank you in advance.
|
|
|
| Back to top |
|
 |
keith Guest
|
Posted: Sat Jun 10, 2006 6:52 am Post subject: Re: update only one table |
|
|
thanks for your advice, I will try.
--
Env: SQL SERVER + Delphi 7 + ADO
"Darren" <D arren @pclegends.com> п╢хКоШо╒пбне:4489a306 (AT) newsgroups (DOT) borland.com...
| Quote: | Make the fields you don't want changed read only.
"Keith" <support (AT) borlandbbs (DOT) cn> wrote in message
news:44895551 (AT) newsgroups (DOT) borland.com...
I have a dbgrid that links to adoquery, which reads multiple tables, then
user edit data in the dbgrid, how to update only one table and do not make
any changes to other tables?
Hope you understand me, if not, pls let me know.
thank you in advance.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|