Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 loop though GlobalVariables

Author  Topic 

sardinka
Posting Yak Master

142 Posts

Posted - 2006-11-16 : 09:32:19
I am trying to loop though GlobalVariables and then assing the value of global variable to my variable.
Dim sSourceFile
For Each GlobalVariable in package.GlobalVariables
sSourceFile=global.Name
Next

what am I doing wrong?

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2006-11-16 : 10:02:28
May be this?

Dim sSourceFile, vGlobal

For Each vGlobal in Package.GlobalVariables
sSourceFile = vGlobal.Name
Next


Harsh Athalye
India.
"Nothing is Impossible"
Go to Top of Page
   

- Advertisement -