bmarinel
Joined: 03 Apr 2003 Posts: 18
|
Posted: Tue Apr 15, 2003 2:05 pm Post subject: Too many database connections |
|
|
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 |
|