BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

update only one table

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Keith
Guest





PostPosted: Fri Jun 09, 2006 4:02 pm    Post subject: update only one table Reply with 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
Darren
Guest





PostPosted: Fri Jun 09, 2006 8:14 pm    Post subject: Re: update only one table Reply with quote



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





PostPosted: Fri Jun 09, 2006 9:14 pm    Post subject: Re: update only one table Reply with quote



"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





PostPosted: Fri Jun 09, 2006 9:34 pm    Post subject: Re: update only one table Reply with 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...
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





PostPosted: Sat Jun 10, 2006 6:52 am    Post subject: Re: update only one table Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.