RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLConnection.CloseDataSets Method

Closes all datasets associated with the SQL connection object component without disconnecting from the database.

Pascal
procedure CloseDataSets;
C++
__fastcall CloseDataSets();

Call CloseDataSets to close all active datasets without disconnecting from the database server. Ordinarily, when an application calls Close, all datasets are closed, and the connection to the database server is dropped. Calling CloseDataSets instead of Close ensures that an application can close all active datasets without having to reconnect to the database server at a later time. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!