You are going to execute a Select command to SQL Server that returns several rows of customer data. You don't need a data table to hold the data because you will simply loop over the returned results to build a string of information that will be displayed to the user. You create and open a connection and then create the command and set its properties. Which method on the command will you execute to retrieve the results?

 Posted by Rajkatie on 8/7/2012 | Category: ADO.NET Interview questions | Views: 3553 | Points: 40
Select from following answers:
  1. ExecuteNonQuery
  2. ExecuteScalar
  3. ExecuteReader
  4. All Above

Show Correct Answer


Source: MeasureUp.com | | Alert Moderator 

Comments or Responses

Login to post response