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 function calling problem

Author  Topic 

sanjnep
Posting Yak Master

191 Posts

Posted - 2007-11-07 : 09:19:53
I need to write SSIS package with 5 script task. I have one function which need to be called from each SSIS one by one. I wrote the that function at first SSIS task. For example:

Public Function Add() As Integer
Dim i, j As Integer
i = 10
j = 20
Return (i + j)
End Function


and I can call this function inside 1st SSIS task but how can I call this function on rest of 4 script task?
Thanks
Sanjeev

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-11-07 : 09:31:31
moved from script library

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

anonymous1
Posting Yak Master

185 Posts

Posted - 2007-11-07 : 16:47:22
haven't seen this done in ssis but in dts this was done by creating a GLOBAL activex task that was diabled, then using alter properties to concatenate the functions from GLOBAL with the script already in the activex task that you want to use a global function from. you should be able to accomplish the same thing in ssis, but someone out there may have a better solution.
Go to Top of Page
   

- Advertisement -