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 

TADOConnection link

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Tumurbaatar S.
Guest





PostPosted: Thu Mar 24, 2005 6:13 am    Post subject: TADOConnection link Reply with quote



There's TADOConnection component on my app's main form.
Other forms of my app have TADOQuery comp-s and theirs Connection
properties point to the main form's TADOConnection. And every
time the project is loaded in BCB6 IDE, all above Connection properties
are cleared. Bug?


Back to top
Daniel Stevenson
Guest





PostPosted: Tue Mar 29, 2005 4:34 am    Post subject: Re: TADOConnection link Reply with quote



I had this problem in my distant past, I'm not sure if it is a bug, I think
it had to do with the order that the forms are loaded and having the
TADOConnection on on a seperate form to your TADOQueries and TADOTables.

I'm also assumming that you are using BCB5 as this is the version I was
seeing it in.

You should probably use DataModules and have the TADOConnection and all
TADOQueries sitting in there, I've not seen the problem since I started
using Data Modules. I also don't have all my TADOQueries connected when the
application starts as this took time to execute the SQL statements and
populate the Queries from the database (especially since I wasn't going to
be using all the Queries at start up)....but my application has over around
70+ tables/queries with some tables with a few thousand records...so load
time of the application was important.

If you didn't want to use a Data Module, you could play around with the
order that the forms are loaded as this had some affect (if my memory is
correct).

"Tumurbaatar S." <nospam_tumur (AT) magicnet (DOT) mn> wrote

Quote:
There's TADOConnection component on my app's main form.
Other forms of my app have TADOQuery comp-s and theirs Connection
properties point to the main form's TADOConnection. And every
time the project is loaded in BCB6 IDE, all above Connection properties
are cleared. Bug?





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) 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.