I created a package in SSIS which inserts data into a table from a flat file. The table is Logs_ASRUN. I am planning for the fact that the flat file the user pulls may have records that already exist in the table. So I created another table called Logs_ASRUN_all, whcih should have the clean data. Since my operation is being performed in a package, is it possible to create a trigger that will insert data into this clean table based on existence?
I have the following trigger, but it is incorrect as no data was inserted:
can someone direct me to a good resource on ssis? for my package, I want to integrate 2 processes - pull from 2 flat files and insert into 2 different tables. I just created 2 separate packages. is this even possible?
I have the following trigger, but it is incorrect as no data was inserted:
Code:
if exists (select PrdNumber from Logs_Asrun Group By PrdNumber Having count(*) = 1)
INSERT INTO Logs_Asrun_All (Title, PrdNumber, Network, ScheduleDate)
SELECT Title, PrdNumber, Network, ScheduleDate FROM INSERTED where prdNumber is not null
can someone direct me to a good resource on ssis? for my package, I want to integrate 2 processes - pull from 2 flat files and insert into 2 different tables. I just created 2 separate packages. is this even possible?