|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, November 17, 2010 5:56 PM
Points: 185,
Visits: 637
|
|
Greetings,
I have some work (e.g. logging information to a file, logging information to a database) that I need to do in several places in my SSIS package. I also need to be able to do this work inside script tasks.
Obviously I do not want to repeat this unit of work. Any suggestions on how I can create a reusable "component" in the package that I can call from anywhere I want?
Of course I could create an external assembly and reference and call it whenever I want from the script tasks, but is there any other way to keep the reusable component "inside" the package? Is there a "script component" task or something I haven't seen yet? 
Cheers Paul
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, November 29, 2012 7:27 PM
Points: 104,
Visits: 313
|
|
| One possibility is to create a package with the common logic and call it as needed.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, November 17, 2010 5:56 PM
Points: 185,
Visits: 637
|
|
| Is it possible to create a script task that is detached from everything else and call it from anywhere I want?
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, November 29, 2012 7:27 PM
Points: 104,
Visits: 313
|
|
| I have only done it as a child package. You might also take a look at creating event handlers. Perhaps some of what you want to do could be handled that way.
|
|
|
|