Home » Microsoft » 70-487 v.2 » You need to return the list of the top 100 books for the GetTopBooks() method Which type should you use to retrieve the data?
You need to return the list of the top 100 books for the GetTopBooks() method Which type should you use to retrieve the data?
A. DataTable
B. SqlDataReader
C. DataView
D. DataSet
Correct Answer: B
Explanation/Reference:
Explanation:
From scenario: TheGetTop100Books() method is mission critical and must return data as quickly as possible. It should take advantage of fast, forward-only, readonly methods of reading data.
A SqlDataReader is a type that is good for reading data in the most efficient manner possible.
References: http://csharp-station.com/Tutorial/AdoDotNet/Lesson04