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 

Refresh DB

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





PostPosted: Mon Jun 26, 2006 8:10 am    Post subject: Refresh DB Reply with quote



Is there any other way to refresh the information in a DB using ADO
connection than closing and opening it?


Thanks


Dolf
Back to top
Guillem
Guest





PostPosted: Mon Jun 26, 2006 3:49 pm    Post subject: Re: Refresh DB Reply with quote



Dolf van den Berg wrote:

Quote:
Is there any other way to refresh the information in a DB using ADO
connection than closing and opening it?


Thanks


Dolf

you can use Requery, which is the same as if you would call Close and
then Open. It refreshes the dataset using the original command or SQL
statement. However, using it you won't be able to change those
properties that can only be changed when the dataset is closed.

--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
Back to top
Brian Bushay TeamB
Guest





PostPosted: Tue Jun 27, 2006 6:11 am    Post subject: Re: Refresh DB Reply with quote



Quote:
you can use Requery, which is the same as if you would call Close and
then Open. It refreshes the dataset using the original command or SQL
statement. However, using it you won't be able to change those
properties that can only be changed when the dataset is closed.

Requery is quite a bit faster than Close/Open
--
Brian Bushay (TeamB)
Bbushay (AT) NMPLS (DOT) com
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.