ADOConnection的KeepConnection属性是做什么用的?我希望详细点

解决方案 »

  1.   

    曾经遇到过这样的问题,请见:http://expert.csdn.net/Expert/topic/2569/2569282.xml?temp=.322201。设置keepconnection属性后错误消失,我想知道为什么!
      

  2.   

    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.
      

  3.   

    Keepconnection为TRUE时,表示就算没有什么一个DATASET对象对数据库进行连接,ADOCONNECTION也保持与数据库的连接