Fórum Liberar a conecção com o banco via ADO #294155
01/09/2005
0
se eu me conecto com o banco: ´ ADOConnection.Connected := True´
e depois desconecto :´ ADOConnection.Connected := False´
ai entao tento deletar esse banco, não consigo porque ele ainda esta em uso, se reinicio o sistema e tento deletar ai consigo,
a minha duvida é : Como libero essa conecção para poder deletar o banco ?
e depois desconecto :´ ADOConnection.Connected := False´
ai entao tento deletar esse banco, não consigo porque ele ainda esta em uso, se reinicio o sistema e tento deletar ai consigo,
a minha duvida é : Como libero essa conecção para poder deletar o banco ?
Fabiano Góes
Curtir tópico
+ 0
Responder
Posts
01/09/2005
Sandra
Fabiano,
Verifique se é a propriedade [b:b2155e527a]KeepConnection = True[/b:b2155e527a], possivelmente deveria ser alterada para False.
[quote:b2155e527a=´Descrição - no Help´]Use KeepConnection to specify whether an application remains connected to a database even if no associated dataset components are currently active. When KeepConnection is true (the default) the connection is maintained. For connections to remote database servers, or for applications that frequently open and close datasets, set KeepConnection to true to reduce network traffic, speed up applications, and avoid logging in to the server each time the connection is reestablished.
When KeepConnection is false a connection is dropped when there are no open datasets. Dropping a connection releases system resources allocated to the connection, but if a dataset is later opened that uses the database, the connection must be reestablished and initialized.[/quote:b2155e527a]
:D
Verifique se é a propriedade [b:b2155e527a]KeepConnection = True[/b:b2155e527a], possivelmente deveria ser alterada para False.
[quote:b2155e527a=´Descrição - no Help´]Use KeepConnection to specify whether an application remains connected to a database even if no associated dataset components are currently active. When KeepConnection is true (the default) the connection is maintained. For connections to remote database servers, or for applications that frequently open and close datasets, set KeepConnection to true to reduce network traffic, speed up applications, and avoid logging in to the server each time the connection is reestablished.
When KeepConnection is false a connection is dropped when there are no open datasets. Dropping a connection releases system resources allocated to the connection, but if a dataset is later opened that uses the database, the connection must be reestablished and initialized.[/quote:b2155e527a]
:D
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)