This documentation is archived and is not being maintained.

IDataReader.NextResult Method

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

[Visual Basic]
Function NextResult() As Boolean
bool NextResult();
bool NextResult();
function NextResult() : Boolean;

Return Value

true if there are more rows; otherwise, false.


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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IDataReader Interface | IDataReader Members | System.Data Namespace