Microsoft
70-516 · Question #98
70-516 Question #98: Real Exam Question with Answer & Explanation
Sign in or unlock 70-516 to reveal the answer and full explanation for question #98. The question stem and answer options stay visible for context.
Question
You use Microsoft .NET Framework 4.0 to develop an ASP.NET Web application that connects to a Microsoft SQL Server 2008 database. The application uses Integrated Windows authentication in Internet Information Services (IIS) to authenticate users. A connection string named connString defines a connection to the database by using integrated security. You need to ensure that a SqlCommand executes under the application pool's identity on the database server. Which code segment should you use?
Options
- Ausing (var conn = new SqlConnection())
- Busing (var conn = new SqlConnection(connString))
- Cusing (var conn = new SqlConneccion())
- Dusing (var conn = new SqlConnection())
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.