I have a text file in following format
EmployeeID EmploymentDate
1 3/12/2004
1 12/12/2004
3
9 1/12/2003
now the problem i am facing in the dts package is it gives error if i use direct copy column in the transformation.
I tried following things
1. Used Activex script transformation as follows
If IsNull(DTSSource("Col007").value) then
DTSDestination("termination_date") =""
ElseIf DTSSource("Col007").value="" then
DTSDestination("termination_date") = ""
Else
DTSDestination("termination_date") = Trim(DTSSource("Col007"))
End If
Main = DTSTransformStat_OK
This results in all the rows inserted as <NULL> for that column
2. Used Activex script transformation as follows
DTSDestination("termination_date") = Trim(DTSSource("Col007"))
Main = DTSTransformStat_OK
same result as above all the rows nulll
now i dont understand why its doing that or whats a good way to design the package.
Any help would be highly appreciated.
Thanks.
EmployeeID EmploymentDate
1 3/12/2004
1 12/12/2004
3
9 1/12/2003
now the problem i am facing in the dts package is it gives error if i use direct copy column in the transformation.
I tried following things
1. Used Activex script transformation as follows
If IsNull(DTSSource("Col007").value) then
DTSDestination("termination_date") =""
ElseIf DTSSource("Col007").value="" then
DTSDestination("termination_date") = ""
Else
DTSDestination("termination_date") = Trim(DTSSource("Col007"))
End If
Main = DTSTransformStat_OK
This results in all the rows inserted as <NULL> for that column
2. Used Activex script transformation as follows
DTSDestination("termination_date") = Trim(DTSSource("Col007"))
Main = DTSTransformStat_OK
same result as above all the rows nulll
now i dont understand why its doing that or whats a good way to design the package.
Any help would be highly appreciated.
Thanks.