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.