PrepAway - Latest Free Exam Questions & Answers

Which code segment should you use?

You have a DataSet object named myDataSet that is populated with data from a Microsoft SQL Server database. This object contains insertions, deletions, and updates to the data. You want to apply the data changes in myDataSet to the database. You decide to use the SqlClient
data provider. You need to create a data object that you will use to update the database. Which code segment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
SqlDataReader myDataReader;

B.
SqlDataAdapter mySqlDataAdapter = new SqlDataAdapter();

C.
DataObject myDataObject = new DataObject();

D.
SqlParameter myParameter = new SqlParameter();


Leave a Reply