Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SSIS import to one table that cascades w/o record Removals

$
0
0

I have an Excel File (.csv) that I want to source/update/refresh data in two tables. The destinations are two SQL Server tables tblSkills and tblServiceTypes. The Excel file contains both skills and ServiceTypes within one table. I need both tables to contain ALL data moving forward, old and new. I have a field ActiveYn field that *1=yes, 2=no.

Part 1 (tblSkills) I would like to have SSIS append NEW records; Existing records = no change; Removed changes the values in ActiveYn to (2).

Part 2 (tblServices) Compare DISTINCT tblSkills.ServiceType to tblServiceType; (Same rules) append NEW records; Existing records = no change; Removed change ActiveYn to (2)

I hope I painted a well enough picture of what I am looking to do. I have only used SSIS for simple processes, but this seems to push me deeper into the pool of understanding. Or am I...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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