Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have this source table

SQL
Employee(ID, Name)


I have this Destination Table

SQL
EmployeeImported(ID,Name,DesgnationID)


During transformation I want to Insert DesignationID from C#. I add a parameter in dataflowtask. I'm Newer I don't Know how do I do this. However I have defined a parameter in data flow task. Kindly guide me.
Posted

Try this one,
C#
package = null;
package = app.LoadPackage(@"C:\ft\Package.dtsx", null);
package.Variables["User::varParam"].Value = "param value";
 
Share this answer
 
v2
Comments
mschotamaster 18-Jul-14 1:05am    
@Bala_MB I know this one. But I don't know what to do in ssis package. Mean I have to write sqlCommand or script task or something else before destination source?
Richard Deeming 18-Aug-14 8:10am    
Hi,

You need to create package level variable in ssis and use that variable within ssis to pick its value.

now from c# you can set value of this global parameter and it will be passed to your method.

Hope this will help

Regards,
Mubin
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900