Kannan Vignesh (1/3/2014)
i am Kannan.
Hello, welcome to SSC.
i need tmplate for loading flat files into staging as well as historical simultaneously.
You've combined three things here at once.
First, that you're looking to generate a template. You don't want to create a template for this because each flat file usually has different construction. If they're the same exact metadata (same field types, same sizes, same order) than maybe you want a template. Then again, for just one or two more, copy/paste is more efficient.
Next, you want to load flat files into staging. That's a simple data flow. Are you having trouble with that component?
Lastly, you say historical. What do you mean by historical? Are you trying to archive the original file for auditing or are you trying to save the record changes into an audit component? The first you'd do want to do in SSIS, the second you'd want to do via a trigger and/or MERGE command to load the older records to another audit table.
now i am currently using data flow transformation in for each loop container. first i am loading files into satging server, then inserting to historical server. kindly clarify any other better ways to load the same.
You would first need to clarify my above questions in this regard. We need a lot more detail then the generic overview you've given us.
- Craig Farrell
Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake. For better assistance in answering your questions | Forum Netiquette
For index/tuning help, follow these directions. |Tally TablesTwitter: @AnyWayDBA