SSIS Custom Components - Getting StartedIntroduction
As is often the case Microsoft has given developers the ability to close the gap in SSIS by creating custom components. The full scope of customization in SSIS is beyond the scope of this article but I will be digging deeper into Custom Connection Managers and Custom Sources as this series progresses. For now, I think it is worth taking the time to introduce custom components as they are a rich subject and show you an easy sample to get started.
Plug in Overview
Microsoft has made it pretty simple to incorporate your own code into Integration Services. In general, you will be writing code that participates in what is known as the "Pipeline" of SSIS. The Pipeline is similar to a stream conceptually speaking in that it allows you to add code inline through scripting or custom components so that you can act on the buffers that SSIS is managing. Here is a quick overview of a VERY simple transform that might help you get started. With a few project references in a class library project and a class that derives from a Pipeline base class you can be up and running.
You will also need a using statement for:
Derive your class from PipelineComponent such as:
Add the attribute to your class:
ComponentType = ComponentType.Transform)
Note: DtsPipelineComponent has other properties to specify description, icon, editor, etc
Now you have to override ProcessInput in your class:
public class MyComponent : PipelineComponent
public override void ProcessInput(int inputID, PipelineBuffer buff)
int currentRows = buff.RowCount;
That's it! This is just a simple transform but I think you can see how Microsoft has made it easy to extend SSIS allowing developers to focus on the problem domain. Keep in mind that Source and Target components will vary just a little in implementation but the purpose of this article was to demonstrate just how easy it is to get started and plug in your custom component to SSIS.