You create a DbCommand to execute a query that returns multiple result sets. You need to iterate through each row of each result set.

What should you do?

 Posted by Rajkatie on 8/31/2012 | Category: ADO.NET Interview questions | Views: 2168 | Points: 40
Select from following answers:
  1. Call the DbDataReader.Read method to iterate through rows within a result set. Call DbDataReader.NextResult to advance to the next result set.
  2. Specify SequentialAccess. Call the DbDataReader.Read method to iterate through all rows in all result sets.
  3. Call the DbDataReader.NextResult method to iterate through all rows in all result sets.
  4. All Above

Show Correct Answer


Source: MeasureUp.com | | Alert Moderator 

Comments or Responses

Login to post response