Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSIS - Custom Task - ProcessInput

Status
Not open for further replies.

Badgers

Programmer
Nov 20, 2001
187
0
0
US
Hi

I have built a custom ssis task which reads a text file in and outputs it. I have a custom param which tells it the number of lines I want to read.

How do I implement this in the code sample below:

public override void ProcessInput(int inputID, PipelineBuffer buffer)
{
if (buffer.EndOfRowset == false)
{
try
{
//Get number of rows to read
int noOfRowsToRead = int.Parse(ComponentMetaData.CustomPropertyCollection["noOfRowsToRead"].Value.ToString());

for (int x = 0; x < noOfRowsToRead; x++)
{
//HELP HERE HOW WOULD I ADD ROWS TO DESTINATION BUFFER SO IT IS AVAILABLE
//TO A DOWNSTREAM COMPONENT.


}


}

Thanks
 
I think you need to ask this question in a more special forum. This one is more for T-SQL challenges.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top