System.Data.IDataReader.NextResult Method

Advances the data reader to the next result, when reading the results of batch SQL statements.

Syntax

public bool NextResult ()

Returns

true if there are more rows; otherwise, false.

Remarks

Used to process multiple results, which can be obtained by executing batch SQL statements.

By default, the data reader is positioned on the first result.

code reference: IDataReader_NextResult#1

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0