Add Parameters in OLE DB Sourcec Container to loop through quarters


good day,

i have project 2 ole db sources, "ole db source 1 = prior qtr" ,  "ole db source 2 = current quarter."

both sources merged , transformed these. 

i've been manually entering prior quarter , current quarter every set of quarters need calculate.

here need with:

i'd have file ole db source goes out , picks prior quarter , current quarter, completes transformation, goes file , grabs other set of prior quarter , current quarter, , forth until package reaches last set of prior quarter , current quarter.

old db source - prior quarter    select   [account_number]  ,[current_balance]  ,[payment_amount]  ,[processing_date]  [acct_data]  processing_date = '03-31-2016'  , limit_code not null    ole db source - current quarter  select   [account_number]  ,[current_balance]  ,[payment_amount]  ,[processing_date]  [acct_data]  processing_date = '06-30-2016'  , limit_code not null

i'd appreciate help/feedback.

thank in advance,

jeannette


hi jeannette,

this blog post: http://www.techbrothersit.com/2013/07/ssis-how-to-pass-parameter-value-to-ole.html

shows how parametrize oledb sql statement.

to set quarter dates can use t-sql shown in http://sqlhints.com/2013/07/20/how-to-get-quarter-start-end-date-sql-server/

which can feed using the execute sql task mapped variables use in oledb sources.


arthur

myblog


twitter



SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Reindexing

Users List

List of charts