Hi There,
I need to Insert two rows into a database table in a SSIS Package.
I am planning to add a Execute SQL Task.
However I am not understanding how to write this query.
Insert Into Table
(colA, colB,colC,colD)
values
(1,2,3, @variable=?)
If I wrote query like this...it is throwing an error "
[Execute SQL Task] Error: Executing the query "Insert Into table
(ColA,ColB..." failed with the following error: "Must declare the scalar variable "@variable".". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
How do declare variable in Execute SQL Task...?
Unknown
I need to Insert two rows into a database table in a SSIS Package.
I am planning to add a Execute SQL Task.
However I am not understanding how to write this query.
Insert Into Table
(colA, colB,colC,colD)
values
(1,2,3, @variable=?)
If I wrote query like this...it is throwing an error "
[Execute SQL Task] Error: Executing the query "Insert Into table
(ColA,ColB..." failed with the following error: "Must declare the scalar variable "@variable".". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
How do declare variable in Execute SQL Task...?
Unknown