Microsoft
70-516 · Question #109
70-516 Question #109: Real Exam Question with Answer & Explanation
Sign in or unlock 70-516 to reveal the answer and full explanation for question #109. The question stem and answer options stay visible for context.
Question
You use Microsoft .NET Framework 4 to develop an application that connects to a Microsoft SQL Server 2008 database. You add the following stored procedure to the database. CREATE PROCEDURE [dbo].[InsertTag] @Name nvarchar (15) AS INSERT INTO [dbo].[Tags] (Name) VALUES(@Name) RETURN @@ROWCOUNT You need to invoke the stored procedure by using an open SqlConnection named conn. Which code segment should you use?
Options
- ASqlCommand cmd = new SqlCommand("EXEC InsertTag", conn);
- BSqlCommand cmd = new SqlCommand("EXEC InsertTag", conn);
- CSqlCommand cmd = new SqlCommand("InsertTag", conn);
- DSqlCommand cmd = new SqlCommand("InsertTag", conn);
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.