Export (0) Print
Expand All

SqlDataReader.NextResult Method

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

[Visual Basic]
Public Overridable Function NextResult() As Boolean Implements _
   IDataReader.NextResult
[C#]
public virtual bool NextResult();
[C++]
public: virtual bool NextResult();
[JScript]
public function NextResult() : Boolean;

Return Value

true if there are more result sets; otherwise, false.

Implements

IDataReader.NextResult

Remarks

Used to process multiple results, which can be generated by executing batch Transact-SQL statements.

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

Requirements

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

SqlDataReader Class | SqlDataReader Members | System.Data.SqlClient Namespace

Show:
© 2014 Microsoft