Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to inactive old record and insert updated record into destination table without using staging tables in SSIS

$
0
0

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-

IDBirdNameTypeOfBirdScientificName
1Eurasian Collared-DoveDoveStreptopelia
2Bald Eagle HawkHaliaeetusLeucocephalus
3Coopers HawkHawkAccipiter Cooperii
4Bells SparrowSparrowArtemisiospiza Belli
5Mourning DoveDoveZenaida Macroura
6Rock PigeonDoveColumba Livia
7Aberts TowheeSparrowMelozone Aberti
8Brewers SparrowSparrowSpizella Breweri
9Canyon TowheeSparrowMelozone Fusca
10Black VultureHawkCoragyps Atratus

Table 2-

IDBirdNameTypeOfBirdScientificNameChkSumisActive
1Eurasian Collared-DoveDoveStreptopelia-4317112601
2Bald Eagle HawkHaliaeetusLeucocephalus-9306022081
3Coopers HawkHawkAccipiter Cooperii-14042874391
4Bells SparrowSparrowArtemisiospiza Belli12602414521
5Mourning DoveDoveZenaida Macroura18333386141
6Rock PigeonDoveColumba Livia10365904211
7Aberts TowheeSparrowMelozone Aberti-5126033211
8Brewers SparrowSparrowSpizella Breweri-20324225731
9Canyon TowheeSparrowMelozone Fusca6640055551
10Black VultureHawkCoragyps Atratus12768453521

Sql update query -

update Table1 set TypeOfBird='Blk Hawk' where ID=10

OUTPUT:


Thanks Bala Narasimha


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>