VISOCO Software  Home | Products | Services | Download | Order | Support | Forum | Resources | Search | About
  RSS feedRSS Feed  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  RegisterRegister   ProfileProfile    Log inLog in 
Too many database connections

 
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE
Author Message
bmarinel



Joined: 03 Apr 2003
Posts: 18

PostPosted: Tue Apr 15, 2003 2:05 pm    Post subject: Too many database connections Reply with quote

Hi,

I just want to share something that I learned about multiple database connections using TSQLCOnnection.

My reporting application runs a number of queries when it starts up. I have a timer set to disconnect 10 seconds after the last query completes. When I checked on the Sybase server I noticed that I had five database connections prior to disconnecting. The TSQLConnection was creating a number of cloned connections. I was able to solve this by setting Query.Prepared := False; after I closed each query. Then I was able to set TSQLConnection.AutoCLose := False;, and my application still worked.

Reagrds,

Bill
Back to top
View user's profile Send private message
Anordlun



Joined: 13 Aug 2004
Posts: 12

PostPosted: Fri Oct 01, 2004 4:03 pm    Post subject: AutoClone Reply with quote

Hi.
Try TSQLConnection.AutoClone := false;
That prevents the connection to clone itself...
Remember to Unprepare the question after use.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE All times are GMT + 2 Hours
Page 1 of 1

 


©VISOCO Software. phpBB by phpBB Group