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

How to use variables in SQL Task for UPDATE SQL statement?

$
0
0

I would like to make UPDATE table SET columnA = variable.

How to define in Execute SQL Task variable?

In which format I should add variable?

 

I got "must declare the scalar variable" error when I defined following SQL Statement in "Execute SQL Task".

Update Table
SET Column1 = @[User::variablename]


Kenny_I



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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