mikeyrad
asked on
SSIS: insert AND delete rows
How can I use SSIS to insert AND delete rows in a SQL Server table based on an an action code contained in each row of a flat file? Each row in the flat file contains an ACTION_CODE, an ID, and other data. If the ACTION_CODE is 'A' then a row in the SQL Server table is to be inserted containing data from the flat file row including the ID. If the ACTION_CODE is 'D' then all rows in the SQL Server table with an ID matching the ID in the flat file row are to be deleted.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I'm sorry can I ask why it must be done on a row by row basis?
Using custom SQL is more flexible for certain tasks.
Using custom SQL is more flexible for certain tasks.
ASKER
Actually, it turns out a little more complicated because of the format and order of the flatfile, but the concepts were sound.
Glad I could be of any help.
ASKER