Free Microsoft 70-516 Exam Dumps Questions & Answers
Exam Code/Number: | 70-516Join the discussion |
Exam Name: | TS: Accessing Data with Microsoft .NET Framework 4 |
Certification: | Microsoft |
Free Question Number: | 196 |
Publish Date: | Oct 01, 2025 |
# of views: | 2463 |
|
You use Microsoft .NET Framework 4.0 to develop an application that connects to a Microsoft SQL Server
2008 database.
You need to ensure that the application connects to the database server by using SQL Server
authentication.
Which connection string should you use?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application uses the ADO.NET Entity Framework to model entities.
The application allows users to make changes while disconnected from the data store.
Changes are submitted to the data store by using the SubmitChanges method of the DataContext object.
You receive an exception when you call the SubmitChanges method to submit entities that a user has
changed in offline mode.
You need to ensure that entities changed in offline mode can be successfully updated in the data store.
What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to two different Microsoft SQL Server 2008 database servers named Server1 and
Server2.
A string named sql1 contains a connection string to Server1. A string named sql2 contains a connection
string to Server2.
01 using (TransactionScope scope = new
02 ...
03 )
04 {
05 using (SqlConnection cn1 = new SqlConnection(sql1))
06 {
07 try{
08 ...
09 }
10 catch (Exception ex)
11 {
12 }
13 }
14 scope.Complete();
15 }
You need to ensure that the application meets the following requirements:
-There is a SqlConnection named cn2 that uses sql2.
-The commands that use cn1 are initially enlisted as a lightweight transaction.
The cn2 SqlConnection is enlisted in the same TransactionScope only if commands executed by cn1 do not
throw an exception.
What should you do?
You use Microsoft Visual Studio 2010 and .NET Framework 4.0 to develop an application that uses the
Entity Framewok.
You need to execute custom logic when an entity is attached to the ObjectContext. What should you do?
You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows
Communication Foundation (WCF) Data Services service.
You discover that when an application submits a PUT or DELETE request to the Data Services service, it
receives an error.
You need to ensure that the application can access the service. Which header and request type should you
use in the application?