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

Adding two numbers together with C# in a script task

$
0
0

This is super easy but I’m having a terrible time with it. All I need to do is add two numbers together but I’m getting nothing but a headache from all the data type errors. I have three package level variables.

RECORD_COUNT1

RECORD_COUNT2

RECORD_COUNT_TOTAL

All of them are INT. The first two are assigned by the row count transformation. Now I need to just add them together and put them in the third variable but so far I’ve been unsuccessful and it’s mostly been casting errors. Can’t take an object and make it an int etc. etc.

How do I get this done?!


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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