![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I'm using a Data pump task which transorms a CSV file to a Table (Source:CSV file,Destination:Table) .There are some columns in the Table which don't exist in the CSV file.I'd like to update those columns in transforming rows .IS it possible? Thanks |
#3
| |||
| |||
|
|
yes, just select the column from the table without a source that you want to add data to and you can do your transformations within an ActiveX script "RayAll" <RayAll (AT) microsft (DOT) com> wrote in message news:OMYydz2HFHA.4032 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Hi All, I'm using a Data pump task which transorms a CSV file to a Table (Source:CSV file,Destination:Table) .There are some columns in the Table which don't exist in the CSV file.I'd like to update those columns in transforming rows .IS it possible? Thanks |
#4
| |||
| |||
|
|
Simon, Here is what I want to do: Source: Column1 Destination: Colunm1,Column2 I'd like to check Column1(while it's being transfered) and if it's for instance more than 5 ,I'd like to update Column2 (in the destination) and skip processing the current row (using DTSTransformStat_skip). Thanks "Simon Worth" <REMOVEFIRST_simon.worth (AT) gmail (DOT) com> wrote in message news:%23O5V112HFHA.2564 (AT) tk2msftngp13 (DOT) phx.gbl... yes, just select the column from the table without a source that you want to add data to and you can do your transformations within an ActiveX script "RayAll" <RayAll (AT) microsft (DOT) com> wrote in message news:OMYydz2HFHA.4032 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Hi All, I'm using a Data pump task which transorms a CSV file to a Table (Source:CSV file,Destination:Table) .There are some columns in the Table which don't exist in the CSV file.I'd like to update those columns in transforming rows .IS it possible? Thanks |
#5
| |||
| |||
|
|
Yes, you can defietly do that within an activeX script task. In the transformation section of the data pump task, select column1 on the left side, and select column1 and column2 on the right hand side. Then click new transformation and select type of ActiveX. Then you can run case statements within to either update column2 only or column1 only example Function Main() Select Case DTSSource("Column1") Case "First Check" DTSDestination("Column1") = DTSSource("Column1") Case "Second Check" DTSDestination("Column2") = "The value you want to assign" End Select Main = DTSTransformStat_OK End Function "RayAll" <RayAll (AT) microsft (DOT) com> wrote in message news:eXP1j82HFHA.3364 (AT) TK2MSFTNGP10 (DOT) phx.gbl... Simon, Here is what I want to do: Source: Column1 Destination: Colunm1,Column2 I'd like to check Column1(while it's being transfered) and if it's for instance more than 5 ,I'd like to update Column2 (in the destination) and skip processing the current row (using DTSTransformStat_skip). Thanks "Simon Worth" <REMOVEFIRST_simon.worth (AT) gmail (DOT) com> wrote in message news:%23O5V112HFHA.2564 (AT) tk2msftngp13 (DOT) phx.gbl... yes, just select the column from the table without a source that you want to add data to and you can do your transformations within an ActiveX script "RayAll" <RayAll (AT) microsft (DOT) com> wrote in message news:OMYydz2HFHA.4032 (AT) TK2MSFTNGP12 (DOT) phx.gbl... Hi All, I'm using a Data pump task which transorms a CSV file to a Table (Source:CSV file,Destination:Table) .There are some columns in the Table which don't exist in the CSV file.I'd like to update those columns in transforming rows .IS it possible? Thanks |
![]() |
| Thread Tools | |
| Display Modes | |
| |