dbTalk Databases Forums  

having access to a field in source before Datapump transfers the row into the destination

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss having access to a field in source before Datapump transfers the row into the destination in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RayAll
 
Posts: n/a

Default having access to a field in source before Datapump transfers the row into the destination - 03-06-2005 , 05:10 PM






Hi All,

I have a datapump which transfers records from CSV file into a Table(same
scenario:-)).I just wondered if before inserting the row in the destination
,I can copy the eigth field in the row which is being tranfered from source
into a global variable.this process should happen for every row.

**CSV File**
**Table**
Record 1 (From source)
Record1(Iin Destination)
Quote:
**gmyVar = S_Feild2**
S_Field1 S_Feild2 S_Field3
D_Field1 D_Feild2 D_Field3



Thanks for your help,

Ray




Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: having access to a field in source before Datapump transfers the row into the destination - 03-07-2005 , 12:33 AM






And do with it what?

The value in the GV will be overwritten on each row




"RayAll" <RayAll (AT) microsft (DOT) com> wrote


Quote:
Hi All,

I have a datapump which transfers records from CSV file into a Table(same
scenario:-)).I just wondered if before inserting the row in the destination
,I can copy the eigth field in the row which is being tranfered from source
into a global variable.this process should happen for every row.

**CSV File**
**Table**
Record 1 (From source)
Record1(Iin Destination)
**gmyVar = S_Feild2**
S_Field1 S_Feild2 S_Field3
D_Field1 D_Feild2 D_Field3



Thanks for your help,

Ray


Reply With Quote
  #3  
Old   
RayAll
 
Posts: n/a

Default Re: having access to a field in source before Datapump transfers the row into the destination - 03-07-2005 , 11:31 AM



I'd like to keep the value of one of the fields in each row in that global
variable to use when logging an error per record.it must be before the first
firld of the record is pumped ,because there might be a validation error in
the first field and I need that global variable reffering to the ID field of
that record to use it in my logger component to log it into another Table.

Why there is no order for the fields in each record.I thought that fields
are pumped from left to right.I put some message boxes in each field script
and I realized that there is no special order from fields in each record.

Thanks for your help
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
And do with it what?

The value in the GV will be overwritten on each row




"RayAll" <RayAll (AT) microsft (DOT) com> wrote


Hi All,

I have a datapump which transfers records from CSV file into a Table(same
scenario:-)).I just wondered if before inserting the row in the
destination
,I can copy the eigth field in the row which is being tranfered from
source
into a global variable.this process should happen for every row.

**CSV File**
**Table**
Record 1 (From source)
Record1(Iin Destination)
**gmyVar = S_Feild2**
S_Field1 S_Feild2 S_Field3
D_Field1 D_Feild2 D_Field3



Thanks for your help,

Ray




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.