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

C# error in in script task

$
0
0

I lost my touch in SSIS. I use an execute task with a simple query select count(column) from table. Result single row, I set up the variable:

this is my scrip in C#:

		public void Main()
		{
			// TODO: Add your code here

            //Dts.Variables["User:Variable"].Value=Convert.ToString(Dts.Variables["User:Variable1"].Value;
            String MyVar = Dts.Variables["User:Variable1"].Value.ToString();
            MessageBox.Show ("MyVar");

			Dts.TaskResult = (int)ScriptResults.Success;
		}

but I retrieve the error above.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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