Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends.

I need your help to synchronize data between two databases.

I have two database. D1 and D2
I want to synchronize data from D1 to D2. I have one table in same structure in both database named is "inventory". I create a SSIS package but when I run package data is copied from D1.Inventory to D2.Inventory.

I want it to be following way.

1. Old data should be cleared from D2.Inventory table and all data should be copied from D1.Inventory to D2.inventory.

OR

2. Only those data should be updated that I specify(I don't know how do I specify by Query or any other way using date filters) so only needed records are updated from source table to destination table. [Don't know is it possible or not].

If any options from above is possible, please guide to accomplish my task. Any tutorial or reference link that will help me out.

Thanks
Imrankhan
Posted

1 solution

You can filter data before you tranfer it to other database. Here is the link where there is an good step wise step example.
* Data Flow Sources are ways that data gets into the system.
* Data Flow Transformations let you alter and manipulate the data in various ways. data flow transformations.
* Data Flow Destinations are the places that you can send the transformed data. flow destinations.

http://www.accelebrate.com/sql_training/ssis_tutorial.htm[^]
 
Share this answer
 
v2

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