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

How to set Active flag false in target table if record is not available in source and available in target.

$
0
0
I am working on an SSIS job where I am importing a .xls file to OLE DB destination (sql database). We load these files on daily basis. The .xls file contains records of hospitals. Each row represents a hospital.  I am able to do insert and update for this process

Here's what I need help with:

If the hospital no longer active we are going to get the same .xls file without the record of hospital. How do I check to see if the record is not in .xls file but it exists in SQL database? I need to update that hospital row in SQL database and update the IsActive field for that row to false.

Viewing all articles
Browse latest Browse all 24688

Latest Images

Trending Articles



Latest Images

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