I have a variable assigned in my SSIS task. I want to access that variable inside a public static DataSet getDataSet() method in my Scriptmain.cs.
basically the variable has a connection string for my sql server and i need to get some values from a table and need to send those values as email in my script task.
I tried to access it from the method public static Dataset however the keyword Dts is not recognized. I tried to find solution from the below link however the example states using the variable outside scriptmain and not inside a different method in script main
Use SSIS Variable in another class besides ScriptMain.cs
Can some one help me to access the dts variable inside a meathod inside scriptmain?