Hi,
I am working on my own data flow source component. Here is a fragment of this component code:
public override void PrimeOutput(int outputs, int[] outputIDs, PipelineBuffer[] buffers)
{
PipelineBuffer selectedBuffer = buffers[0];
string message;
while ((message = GetMessage()) != null)
{
selectedBuffer.AddRow();
selectedBuffer.SetString(0, message);
// how to flush data here
}
selectedBuffer.SetEndOfRowset();
}
private string GetMessage()
{
// we are retrieving some message here, this is a long-term process
}
{
PipelineBuffer selectedBuffer = buffers[0];
string message;
while ((message = GetMessage()) != null)
{
selectedBuffer.AddRow();
selectedBuffer.SetString(0, message);
// how to flush data here
}
selectedBuffer.SetEndOfRowset();
}
private string GetMessage()
{
// we are retrieving some message here, this is a long-term process
}
When a new row is added by this component to the buffer then this row is not immediately available to the next component in data flow. It is possible to configure SSIS in that way that each row is immediately sent to the next data flow component If no also please inform me about that.
Thanks,
Rafal