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


Add to briefcase

SSIS question Expand / Collapse
Author
Message
Posted Monday, November 5, 2012 4:44 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 1:48 PM
Points: 232, Visits: 1,033
I have three column values (startdate, completedate, recordcount) that i get in txt audit file. I need to use those values downstream in my ssis package. I want those values in the ssis variables. Is there a way i can map them directly to ssis variables and use them instead of loading them into a table.

many thanks.
Post #1381313
Posted Monday, November 5, 2012 4:56 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Yesterday @ 1:48 PM
Points: 232, Visits: 1,033
Ok Found out there is recordset destination-never used that one.Anything to add?
Post #1381317
Posted Monday, November 5, 2012 11:36 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 8:49 AM
Points: 13,735, Visits: 10,703
Yes, there's only a destination, not a source.
You need to write a script component as a source to read from the object variable where the recordset is stored in.

Somehow using a table seems easier to me




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1381392
Posted Tuesday, November 6, 2012 7:15 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 1:48 PM
Points: 1,330, Visits: 2,295
You can use a ForEach Loop task to read from a recordset object and assign the column values from each row to a variable.
Post #1381557
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse