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

Assigning a value to output variable in SSIS Script Component...

$
0
0

Hi all,

I am having an issue with writing an value to a variable inside ssis script component.

trying to convert a file from ansi  to utf-8.Here are the steps i followed:

  • Created a variable Readonly with string and passed the file as value.
  • Created a variable readwrite with string.

This is the code inside the script component:

      string text = File.ReadAllText(filename, Encoding.Default);         

            // write as UTF-8
            File.WriteAllText(path2, text, Encoding.UTF8);

I need to get the value of the variable and assign to filename and get the converted file and assign to the variable Path2.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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