Microsoft
70-516 · Question #245
70-516 Question #245: Real Exam Question with Answer & Explanation
Sign in or unlock 70-516 to reveal the answer and full explanation for question #245. 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 dtao.InsertTag BName nvarchar (15) AS INSERT INTO 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
- ADim cmd As SqlCommand =new SqlCommand("EXEC InsertTag", conn)
- BDim cmd As SqlCommand =new SqlCommand("EXEC InsertTag", conn)
- CDim cmd As SqlCommand = New SqlCommand("InsertTag", conn)
- DDim cmd As SqlCommand = 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.