Which SQL statement should you use?

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?
A . INSERT INTOdbo.Table (variablevalue) VALUES ($StringVar)
B . INSERT INTOdbo.Table (variablevalue) VALUES (0)
C . INSERT INTOdbo.Table (variablevalue) VALUES (@0)
D . INSERT INTOdbo.Table (variablevalue) VALUES (?)

Answer: D

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>