Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SSIS
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 11-Sep-11 21:12pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
v2

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

  Print Answers RSS
0 Maciej Los 225
1 Sergey Alexandrovich Kryukov 167
2 _Amy 155
3 CHill60 130
4 Manfred R. Bihy 130
0 OriginalGriff 7,320
1 Sergey Alexandrovich Kryukov 6,043
2 Maciej Los 3,754
3 Peter Leow 3,448
4 CHill60 2,572


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 13 Sep 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100