Hi Everyone,
I have a employee file that have column id ,name,age,dob as header and header are not mentioned in file :Below is the file.
if i got wrong data in file as you can see in column age its 'd' written and in column dob its 'a' written .
I want 1 row to go into my main table i.e "EMP" table that are for good record and second row i want to go column wise in my "Error_Log" table.
I have tried using row redirect in SSIS but in that case i can capture only first error column not second any suggestion or link .
1.EMP File
1 | Alex | 38 | 3/30/1983 |
2 | henry | d | a |
2.Good record to be inserted in EMP
ID | Name | Age | DOB |
1 | Alex | 38 | 3/30/1983 |
3.Bad record to be inserted column wise in Error_Log Table like below
ID | Error_Column | Error_Desc |
2 | Age | Coversion failed |
2 | DOB | Coversion failed |