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

Delete the existing Records between two Tables however does not have matcing columns scenario

$
0
0

Hi All,

i am loading the data from once xls source into SQL stage table. Then loading into the Master Table.

Daily we are doing the truncation of the stage table.

In my scenario, the values in the  the master table as well as stage table NONE of the columns having unique identification value. In the staging  we are doing the TRUNCATE so we did not keep any identity columns.

One day we have received the one XLS file and loaded into the stage and master tables. Due to few buisness reasons  we need to load the New file for the same day. Due to that we need to delete the loaded data in the master table. Before truncating the stage table.

By using delete command with created date we can achieve.

If the same day they are giving 2 files to load into database. after that giving only one file for reload due to few issues in this scenarion created date not work out.

Please share your ideas.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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