Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to Declare a variable in Execute SQL task to Insert a row..?

$
0
0
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

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>