Disconnecting from a Database Server

From InterBase

Go Up to Controlling Connections


There are two ways to disconnect a server from a database component:

  • Set the Connected property to False
  • Call the Close method

Setting Connected to False calls Close. Close closes all open datasets and disconnects from the server. For example, the following code closes all active datasets for a database component and drops its connections:

IBDatabase1.Connected := False;

Advance To: