nerdexam
Microsoft

70-516 · Question #45

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

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

Question

You use Microsoft .NET Framework 4.0 to develop an ASP.NET application. The application uses Integrated Windows authentication. The application accesses data in a Microsoft SQL Server 2008 database that is located on the same server as the application. You use the following connection string to connect to the database. Integrated Security=SSPI; Initial Catalog=AdventureWorks; The application must also execute a stored procedure on the same server on a database named pubs. Users connect to the ASP.NET application through the intranet by using Windows-based authentication. You need to ensure that the application will use connection pooling whenever possible and will keep the number of pools to a minimum. Which code segment should you use?

Options

  • Acommand.CommandText = "USE [pubs]; exec uspLoginAudit;";
  • Bcommand.CommandText = "exec uspLoginAudit;";
  • Ccommand.CommandText = "USE [pubs]; exec uspLoginAudit;";
  • Dcommand.CommandText = "exec uspLoginAudit;";

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