Hi Team,
It is possible to inactive old record and insert updated record into destination table without using staging tables in SSIS.
In my destination table am adding two more fields like Checksum and isActive.
table 1 in server 1
table 2 in server 2
Sample Data:
Table 1-
ID | BirdName | TypeOfBird | ScientificName |
1 | Eurasian Collared-Dove | Dove | Streptopelia |
2 | Bald Eagle Hawk | Haliaeetus | Leucocephalus |
3 | Coopers Hawk | Hawk | Accipiter Cooperii |
4 | Bells Sparrow | Sparrow | Artemisiospiza Belli |
5 | Mourning Dove | Dove | Zenaida Macroura |
6 | Rock Pigeon | Dove | Columba Livia |
7 | Aberts Towhee | Sparrow | Melozone Aberti |
8 | Brewers Sparrow | Sparrow | Spizella Breweri |
9 | Canyon Towhee | Sparrow | Melozone Fusca |
10 | Black Vulture | Hawk | Coragyps Atratus |
Table 2-
ID | BirdName | TypeOfBird | ScientificName | ChkSum | isActive |
1 | Eurasian Collared-Dove | Dove | Streptopelia | -431711260 | 1 |
2 | Bald Eagle Hawk | Haliaeetus | Leucocephalus | -930602208 | 1 |
3 | Coopers Hawk | Hawk | Accipiter Cooperii | -1404287439 | 1 |
4 | Bells Sparrow | Sparrow | Artemisiospiza Belli | 1260241452 | 1 |
5 | Mourning Dove | Dove | Zenaida Macroura | 1833338614 | 1 |
6 | Rock Pigeon | Dove | Columba Livia | 1036590421 | 1 |
7 | Aberts Towhee | Sparrow | Melozone Aberti | -512603321 | 1 |
8 | Brewers Sparrow | Sparrow | Spizella Breweri | -2032422573 | 1 |
9 | Canyon Towhee | Sparrow | Melozone Fusca | 664005555 | 1 |
10 | Black Vulture | Hawk | Coragyps Atratus | 1276845352 | 1 |
Sql update query -
update Table1 set TypeOfBird='Blk Hawk' where ID=10
OUTPUT:
Thanks Bala Narasimha