Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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.

Namespace:  System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public override bool NextResult()

Return Value

Type: System.Boolean
true if there are more result sets; otherwise false.

Implements

IDataReader.NextResult()

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft