How to run SSIS package for previous date -
i executing sql task in ssis package in in using todays date getdate() funciton in sql. reason if package didn't run day , want run manually best practice this?
how intend run manually? bids? you'd have kind of control table, , package table decide do. example have table called ssiscontrol
column called daysoffset
0. ssis loads value variable subtracts variable getdate()
if set column 1, subtract 1 getdate()
as can see need prebuild package.
the exact design of control table dictated want control. example might want unpivot fields rows instead.
another way (and not best practice) set offset variable directly in bids , run package.
Comments
Post a Comment