FireDAC.Phys.TFDPhysDriverLink.Release

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Release;

C++

void __fastcall Release(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Phys.pas
FireDAC.Phys.hpp
FireDAC.Phys TFDPhysDriverLink

Description

Releases the driver resources and allows to initialize the driver with different parameters.

Use the Release method to release all driver resources and to unload the DBMS client library.

The next connection established after the Release call initializes the driver and loads the DBMS client library using the current driver parameters. So, after changing the VendorHome and VendorLib properties values, call the Release method to force DBMS client reloading.

Before calling the Release method, an application must close all connections made through this driver. Otherwise, an exception will be raised. If there were no connections made through this driver, the application may avoid the Release call, as the driver is not initialized and the DBMS client library is not loaded.

Example

FDConnection1.Close;
...
FDConnectionN.Close;

FDPhysFBDriverLink.VendorLib := 'c:\fbclient.dll';
FDPhysFBDriverLink.Release;

FDConnection1.Open;
...
FDConnectionN.Open;

See Also