dbTalk Databases Forums  

Gurus DTS

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


Discuss Gurus DTS in the microsoft.public.sqlserver.dts forum.



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

Default Gurus DTS - 03-24-2008 , 03:10 PM






I need to check whithin an exists DTS source fild, i have the next code VB,
but it made error message is " No match the types : 'exists' "

Any help will be great
Thank you.

'************************************************* *********************
' Secuencia de comandos de transformacin Visual Basic
'************************************************* ***********************

' Copia cada columna de origen a la columna de destino

Function Main()

If exists (DTSSource("Col004")) Then
DTSDestination("Campo04") = DTSSource("Col004")
end if

DTSDestination("Campo03") = DTSSource("Col003")
DTSDestination("Campo02") = DTSSource("Col002")
DTSDestination("Campo01") = DTSSource("Col001")

Main = DTSTransformStat_OK

End Function



Reply With Quote
  #2  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-26-2008 , 04:56 AM






Hi Fernando,

I don't think "exists" is a valid VB function. My VB is a bit rusty,
but in .Net you need to use the File.Exists() to check whether a file
is there.

Good luck!
J

Reply With Quote
  #3  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-26-2008 , 04:56 AM



Hi Fernando,

I don't think "exists" is a valid VB function. My VB is a bit rusty,
but in .Net you need to use the File.Exists() to check whether a file
is there.

Good luck!
J

Reply With Quote
  #4  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-26-2008 , 04:56 AM



Hi Fernando,

I don't think "exists" is a valid VB function. My VB is a bit rusty,
but in .Net you need to use the File.Exists() to check whether a file
is there.

Good luck!
J

Reply With Quote
  #5  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-26-2008 , 04:56 AM



Hi Fernando,

I don't think "exists" is a valid VB function. My VB is a bit rusty,
but in .Net you need to use the File.Exists() to check whether a file
is there.

Good luck!
J

Reply With Quote
  #6  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-26-2008 , 04:56 AM



Hi Fernando,

I don't think "exists" is a valid VB function. My VB is a bit rusty,
but in .Net you need to use the File.Exists() to check whether a file
is there.

Good luck!
J

Reply With Quote
  #7  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-26-2008 , 04:56 AM



Hi Fernando,

I don't think "exists" is a valid VB function. My VB is a bit rusty,
but in .Net you need to use the File.Exists() to check whether a file
is there.

Good luck!
J

Reply With Quote
  #8  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-26-2008 , 04:56 AM



Hi Fernando,

I don't think "exists" is a valid VB function. My VB is a bit rusty,
but in .Net you need to use the File.Exists() to check whether a file
is there.

Good luck!
J

Reply With Quote
  #9  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-26-2008 , 04:56 AM



Hi Fernando,

I don't think "exists" is a valid VB function. My VB is a bit rusty,
but in .Net you need to use the File.Exists() to check whether a file
is there.

Good luck!
J

Reply With Quote
  #10  
Old   
nite_eagle@hotmail.com
 
Posts: n/a

Default Re: Gurus DTS - 03-26-2008 , 09:12 AM



Fernando.

IsNull is the function that should be used.

Norman Kelm

DTS Package Search
http://www.dtspackagesearch.com/

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.