nerdexam
Microsoft

70-516 · Question #140

70-516 Question #140: Real Exam Question with Answer & Explanation

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

Question

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Microsoft ASP.NET application. You want to connect the application to a Microsoft SQL Server Express 2008 database named MyDatabase. The primary database file is named MyDatabase.mdf and it is stored in the App_Data folder. You need to define the connection string. Which connection string should you add to the Web.config file?

Options

  • AData Source=localhost; Initial Catalog=MyDataBase; Integrated Security=SSPI;
  • BData Source=.\SQLEXPRESS; Initial Catalog=MyDataBase; Integrated Security=True;
  • CData Source=.\SQLEXPRESS; AttachDbFilename=|DataDirectory|\MyDatabase.mdf;
  • DData Source=.\SQLEXPRESS;

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.

Full 70-516 Practice