Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a POS flat file which has all the transactions of the previous day and all the changes for the last 14 days. I have to create a package to load it into the DB

My question is what is the bast way to load it into the database?

GOAL: record all the updates and inserts to be used for analytics.

No primary key in the table and we are not supposed to create any new columns.

Thanks a lot for your support
Posted
Updated 3-Jan-14 4:34am
v2

1 solution

You are going to need a dataflow task.

Inside this you are going to need a flatfile source, then a data lookup. configure the lookup to re-direct not found rows and found rows. Insert into the database using SQL destination and multicast that to your audit / analytics table.

OR

create a flatfile source, read the data and insert into your database into a staging table. Then using the SQLCommand task. Set this task to use a stored procedure that has your business logic for analysing the inserts and updates.

http://oakdome.com/programming/SSIS_Lookup.php[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900