Microsoft
70-458 · Question #32
70-458 Question #32: Real Exam Question with Answer & Explanation
The correct answer is D. INSERT INTO dbo.Table (variablevalue) VALUES (?). See the full explanation below for the reasoning.
Question
You are developing a SQL Server Integration Services (SSIS) package that imports data into a data warehouse. You add an Execute SQL task to the control flow. The task must execute a simple INSERT statement. The task has the following requirements: - The INSERT statement must use the value of a string package variable. The variable name is StringVar. - The Execute SQL task must use an OLE DB Connection Manager. In the Parameter Mapping tab of the Execute SQL task, StringVar has been added as the only parameter. You must configure the SQLStatement property of the Execute SQL task. Which SQL statement should you use?
Options
- AINSERT INTO dbo.Table (variablevalue) VALUES ($Project::StringVar)
- BINSERT INTO dbo.Table (variablevalue) VALUES (@StringVar)
- CINSERT INTO dbo.Table (variablevalue) VALUES ($Package::StringVar)
- DINSERT INTO dbo.Table (variablevalue) VALUES (?)
Community Discussion
No community discussion yet for this question.