FireDAC.Comp.DataSet.TFDDataSet.Release

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Release;

C++

void __fastcall Release();

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDDataSet

Description

Releases all the dataset cursors.

The Release method call releases all the dataset cursors, but does not close it. After this call no more cursors are accessible. As a result, the dataset will not fetch any more records from the cursor and SourceEOF will be True

If ResourceOptions.AutoFetchAll is True, then before releasing the cursors, the dataset fetches all the remaining records from the current cursor. If it is False and not all records are fetched, then an exception is raised. The application can explicitly fetch all the dataset records by calling the FetchAll method. 

The Disconnect method is similar to the Release method, but it also unprepares a command.

See Also