Which SQL statement should you use?

Correct Answer for the following Question is given below

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?Topic 2, Volume B

Question:

Which SQL statement should you use?

Options:

INSERT INTO dbo.Table (variablevalue) VALUES (@StringVar)

INSERT INTO dbo.Table (variablevalue) VALUES ($Project::StringVar)

INSERT INTO dbo.Table (variablevalue) VALUES (?)

INSERT INTO dbo.Table (variablevalue) VALUES ($Package::StringVar)

Correct Answer

The Correct Answer for this Question is

INSERT INTO dbo.Table (variablevalue) VALUES (?)

Explanation

The Question – Which SQL statement should you use? has been answered correctly and answers for the question is INSERT INTO dbo.Table (variablevalue) VALUES (?)

More about these Exams

These Exam Questions and the order of these questions keep changing. but the answers are obviously same. so if you don’t find a question after another we suggest you search it in the search box and we are sure you’ll find it. you can bookmark this site for Quick access in future.

We hope you found it helpful don’t forget to leave a comment if you feel a need to correct or ask we’re always here to help.

you can find more here at mnccertified

Feel free to contact via comment or email.

Happy Learning

Cheers, Team MNCcertified

Leave a Comment