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 2005 Forums
 SSIS and Import/Export (2005)
 SSIS script task

Author  Topic 

pazzy11
Posting Yak Master

145 Posts

Posted - 2008-02-20 : 06:49:41
Dim RootFolder As String


RootFolder = DTSGlobalVariables("gRootFolder")


I have an error that RootFolder is not being declared with this ?
but it is , why is .NET such a heap of sh*t ?




rgombina
Constraint Violating Yak Guru

319 Posts

Posted - 2008-02-20 : 06:54:43
Dim RootFolder As String
RootFolder = Dts.Variables("gRootFolder").Value.String 'Script Task

Dim str As String
str = "new string value here"
Variables.gRootFolder = str 'Script Component

Make sure both are declared in the ReadWriteVariables = gRootFolder
Go to Top of Page
   

- Advertisement -