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

SSIS Execute sql task and variables

$
0
0

I am newbie to SSIS. I want to run an Execute sql task in control flow. Control flow does not provide any derived column task or so.. I want to prepare a sql statement and put it in a variable and then I can use that in execute sql task.

I have defined a variable called sqlstatment. When I went to set its value; I set it as:

‘truncate table ‘ +   User::vschema + ‘.’ + employee

Now when I run execute sql task, it is complaining about syntax of sqlstatement. Cannot figure out the error:

A few questions:

  1. Can I define value of a variable sqlstatment which is an expression.
  2. How do I debug what is the value of variable when I am executing control flow.

Appreciate any help.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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