nerdexam
Microsoft

70-516 · Question #95

You use Microsoft .NET Framework 4.0 to develop an application that connects to a Microsoft SQL Server 2008 database. The application includes a table adapter named taStore, which has the following…

Sign in or unlock 70-516 to reveal the answer and full explanation for question #95. The question stem and answer options stay visible for context.

Manipulating and Validating Data

Question

You use Microsoft .NET Framework 4.0 to develop an application that connects to a Microsoft SQL Server 2008 database. The application includes a table adapter named taStore, which has the following DataTable. There is a row in the database that has a ProductID of 680. You need to change the Name column in the row to "New Product Name". Which code segment should you use?

Options

  • Avar dt = new taStore.ProductDataTable();
  • Bvar ta = new taStoreTableAdapters.ProductTableAdapter();
  • Cvar dt = new taStore.ProductDataTable();
  • Dvar dt = new taStore.ProductDataTable();

Unlock 70-516 to see the answer

You've previewed enough free 70-516 questions. Unlock 70-516 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#TableAdapter#DataTable#update row#ADO.NET
Full 70-516 Practice