dbTalk Databases Forums  

having 2 fields always in a variable before going through each record in a datapump

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


Discuss having 2 fields always in a variable before going through each record in a datapump in the microsoft.public.sqlserver.dts forum.



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

Default having 2 fields always in a variable before going through each record in a datapump - 04-06-2005 , 03:48 PM






I'm pumping a csv file into a table using datapump .I'd like to do some
validation on every single field on each record while I'm transferring
records and for that reason I need to retrieve a value from database based
on the first two fields in CSV file.I noticed that I don't have access to
data in "Pre source Data function" and I cannot use "On insert success"
too,because it's when acually the record has been transfered.Where should I
do my look up? I know that I can do that lookup in each field ,but I'm
looking for a way to do the lookup on the beginning of the each record
processign and keep the result in a global varaible for instance and use
that global variable in all my validations on each field. Is it doable?

Thanks



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

Default Re: having 2 fields always in a variable before going through each record in a datapump - 04-06-2005 , 03:53 PM






I forgot to say that the only chance I have is that the first row of my csv
file is a comment (it's always there) so I might be able to use "On insert
success",but still curious to know if there is a better way of doing that.

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

Quote:
I'm pumping a csv file into a table using datapump .I'd like to do some
validation on every single field on each record while I'm transferring
records and for that reason I need to retrieve a value from database based
on the first two fields in CSV file.I noticed that I don't have access to
data in "Pre source Data function" and I cannot use "On insert success"
too,because it's when acually the record has been transfered.Where should
I do my look up? I know that I can do that lookup in each field ,but I'm
looking for a way to do the lookup on the beginning of the each record
processign and keep the result in a global varaible for instance and use
that global variable in all my validations on each field. Is it doable?

Thanks




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.