dbTalk Databases Forums  

Re: set gv from 1st rec in dbase5

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


Discuss Re: set gv from 1st rec in dbase5 in the microsoft.public.sqlserver.dts forum.



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

Default Re: set gv from 1st rec in dbase5 - 05-07-2004 , 04:47 PM






use something like this

function main()
dim gv as dts.globalvariable
dim count as integer
count=1
if count=1 then
'get data from first record
set gv=dtssource("col1")+dtssource("col2") or whatever you want to do
with the two columns
end if
count=count+1
Main = DTSTransformStat_OK
end function




Regards

Partha Mandayam
Software Consultant
Home page: http://partha.tripod.com


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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.