SqlDataReader.NextResult Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

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
Available since 1.1
Return to top