Home > Code > C# > Retrieve multiple ref cursors and read through DataReader in C#

Retrieve multiple ref cursors and read through DataReader in C#

by Thamil   on Sep 07, 2015   Category: C#   |  Views: 561    |  Points: 25   |  Gold 


Below sample code will help you to read values from multiple cursors by using C# data reader. NextResult() menthod would advances the datareader to the next result set when data reader contains multiple result sets.

while (datareadr.Read())
{
//first cursor
}
if (datareadr.NextResult() == true)
{
while (datareadr.Read())
{
//Second cursor
}
}



Post Code  |  Code Snippet Home

User Responses


No response found, be the first to review this code snippet.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts