Marc Bernier
Marc Bernier

Reputation: 2996

SSIS: Synchronous output and Pass-Through

I'm writing an SSIS Transformation component. I would like to allow the user to select which input fields he would like to pass-through to the output.

I thought that the SetUsageType() function would control this - it takes an enumeration (DT_READONLY, DT_READWRITE, DT_IGNORED). DT_READONLY is for input-only fields, DT_READWRITE is for input/output fields, and DT_IGNORED is to not carry the field from input to output at all.

However, in my tests, it seems that a synchronous operation will output all of the input fields along with any output fields that I've added. Is this always the case? Is there a way of suppressing certain input fields from being transferred to the output?

It looks like I can do this with an asynchronous, but I was hoping for synchronous.

Upvotes: 1

Views: 1531

Answers (2)

William Salzman
William Salzman

Reputation: 6446

If I remember correctly, what makes a synchronous task a synchronous task is that it reuses the input buffer as the output buffer only adding columns or changing data in columns or redirecting entire rows. If you really need to remove columns from your flow it looks like an asynchronous task is what you want. In an asynchronous task a new buffer is created.

See: Understanding Synchronous and Asynchronous Transformations

Upvotes: 2

ajdams
ajdams

Reputation: 2314

Not sure I understand why you would use SSIS for this task but I think you best option would be to output all the rows and then allow the user to pick and simply ignore the ones they elect not to view.

Upvotes: -1

Related Questions