SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On



Using variables set at C# code to be used at SSIS package end. Expand / Collapse
Author
Message
Posted Wednesday, October 14, 2009 12:50 PM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, January 19, 2010 11:00 AM
Points: 19, Visits: 82
Hi All

My SSIS package is executed from C# code.
I have a variable that I want passed from the C# code to the package. I know how to set it at the C# code end i.e.
ssisPackage.Variables["PaidWeight"].Value = '5'
but what I dont know is, how do i use this at the SSIS package end in a ExecuteSQL task. Do i create a package wide variable? Pls help.

Thank you
Gomz
conningtower@gmail.com



Post #803030
Posted Saturday, October 24, 2009 10:12 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 5:59 PM
Points: 2,379, Visits: 1,832
Did you not understand what was posted at:
http://www.sqlservercentral.com/Forums/Topic803085-148-1.aspx

CEWII


--------------------------------
Having trouble figuring out what jobs are running in SQL Server at the same time.
Try Sql Job History Visualization
It lets you view your SQL Job history on an Outlook style calendar..
Post #808315
Posted Saturday, October 24, 2009 10:41 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, January 19, 2010 11:00 AM
Points: 19, Visits: 82
Hi elliot

I m sorry for not getting back , the problem i faced was i needed to get the package variable into a ole db source so that I can use it to create my output and send it to a flat file destination. I dont know how i could do that when i use a execute sql task like the way u had suggested.

Thank you
Gomz
Post #808318
« Prev Topic | Next Topic »


Permissions Expand / Collapse