Data.SqlExpr.TSQLStoredProc.NextRecordSet

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function NextRecordSet: TCustomSQLDataSet;

C++

TCustomSQLDataSet* __fastcall NextRecordSet();

Properties

Type Visibility Source Unit Parent
function public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLStoredProc

Description

Provides access to a secondary recordset.

Call NextRecordSet to obtain secondary datasets when accessing the results of a stored procedure that returns multiple sets of records. Opening the dataset fetches the first set of records. NextRecordSet provides access to the subsequent sets.

NextRecordSet returns a newly created TCustomSQLDataSet component that provides access to the next set of records. The first time you call NextRecordSet, it returns a dataset for the second set of records. The next call returns a third dataset, and so on, until there are no more sets of records. When there are no additional datasets, NextRecordSet returns nil (Delphi) or NULL (C++).

See Also