Which of the following lines of code should you choose?

Your application includes a SqlDataAdapter object named sqlDataAdapter and an OleDbDataAdapter object named oledbdataAdapter. You need to connect to the Employees table of a SQL Server database. Your application also includes a DataSet object named dsEmployees. You need to load the data from the database into the DataSet object. You must select a solution that gives you the best performance. Which of the following lines of code should you choose?
A. dsEmployees = sqlDataAdapter.Fill("Employees");
B. dsEmployees = oledbDataAdapter.Fill("Employees");
C. oledbDataAdapter.Fill(dsEmployees, “Employees”);
D. sqlDataAdapter.Fill(dsEmployees, "Employees");

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.