dbTalk Databases Forums  

copying inputbuffer to outputbuffer

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss copying inputbuffer to outputbuffer in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kent.eilers@res-direct.com
 
Posts: n/a

Default copying inputbuffer to outputbuffer - 05-29-2008 , 11:35 AM






i'm working on building a generic error handling routine for a
package. I've googled my way to the point where i can iterate thru
the input buffer....but don't know how to get the actual value in the
column buffer so I can copy it into the appropriate output column
buffer. Can anyone offer some advice?....I've included most of the
script -- look for "need syntax here' for specific issue.

Thanks.


Public Class ScriptMain
Inherits UserComponent
Private mErrDesc As String
Private inputBuffer As PipelineBuffer

Public Overrides Sub ProcessInput(ByVal InputID As Integer,
ByVal Buffer As

Microsoft.SqlServer.Dts.Pipeline.PipelineBuffer)
inputBuffer = Buffer
MyBase.ProcessInput(InputID, Buffer)
End Sub

Public Overrides Sub Input0_ProcessInputRow(ByVal Row As
Input0Buffer)
mErrDesc =
Me.ComponentMetaData.GetErrorDescription(Row.Error Code)
Call CreateNewOutputRows()
End Sub

Public Overrides Sub CreateNewOutputRows()
Dim INcolumn As IDTSInputColumn90

errorDescriptionBuffer.AddRow()

For Each INcolumn In
Me.ComponentMetaData.InputCollection(0).InputColum nCollection
'all outputbuffer columns will have same names as
input
' iterate thru input columns and copy values into
output buffer
' >>>>>>>>>>>>>need syntax here >>>>>>>>>>>>>>>>>>
errorDescritpionBuffer.columns(INname).value =
INname.value
' >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Next

errorDescriptionBuffer.errDesciption = mErrDesc

End Sub

Reply With Quote
  #2  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: copying inputbuffer to outputbuffer - 05-30-2008 , 07:47 AM






Hi Kent,

I think you need to pass the Row from ProcessInput to
CreateNewOutputRows.

If I remember correctly however, if you set the Output's
"SynchronousInputID" property to point to your Input, the output
buffer will automatically contain all of the columns and data from the
input buffer (and any additional columns you create).

Good luck!
J

Reply With Quote
  #3  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: copying inputbuffer to outputbuffer - 05-30-2008 , 07:47 AM



Hi Kent,

I think you need to pass the Row from ProcessInput to
CreateNewOutputRows.

If I remember correctly however, if you set the Output's
"SynchronousInputID" property to point to your Input, the output
buffer will automatically contain all of the columns and data from the
input buffer (and any additional columns you create).

Good luck!
J

Reply With Quote
  #4  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: copying inputbuffer to outputbuffer - 05-30-2008 , 07:47 AM



Hi Kent,

I think you need to pass the Row from ProcessInput to
CreateNewOutputRows.

If I remember correctly however, if you set the Output's
"SynchronousInputID" property to point to your Input, the output
buffer will automatically contain all of the columns and data from the
input buffer (and any additional columns you create).

Good luck!
J

Reply With Quote
  #5  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: copying inputbuffer to outputbuffer - 05-30-2008 , 07:47 AM



Hi Kent,

I think you need to pass the Row from ProcessInput to
CreateNewOutputRows.

If I remember correctly however, if you set the Output's
"SynchronousInputID" property to point to your Input, the output
buffer will automatically contain all of the columns and data from the
input buffer (and any additional columns you create).

Good luck!
J

Reply With Quote
  #6  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: copying inputbuffer to outputbuffer - 05-30-2008 , 07:47 AM



Hi Kent,

I think you need to pass the Row from ProcessInput to
CreateNewOutputRows.

If I remember correctly however, if you set the Output's
"SynchronousInputID" property to point to your Input, the output
buffer will automatically contain all of the columns and data from the
input buffer (and any additional columns you create).

Good luck!
J

Reply With Quote
  #7  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: copying inputbuffer to outputbuffer - 05-30-2008 , 07:47 AM



Hi Kent,

I think you need to pass the Row from ProcessInput to
CreateNewOutputRows.

If I remember correctly however, if you set the Output's
"SynchronousInputID" property to point to your Input, the output
buffer will automatically contain all of the columns and data from the
input buffer (and any additional columns you create).

Good luck!
J

Reply With Quote
  #8  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: copying inputbuffer to outputbuffer - 05-30-2008 , 07:47 AM



Hi Kent,

I think you need to pass the Row from ProcessInput to
CreateNewOutputRows.

If I remember correctly however, if you set the Output's
"SynchronousInputID" property to point to your Input, the output
buffer will automatically contain all of the columns and data from the
input buffer (and any additional columns you create).

Good luck!
J

Reply With Quote
  #9  
Old   
jhofmeyr@googlemail.com
 
Posts: n/a

Default Re: copying inputbuffer to outputbuffer - 05-30-2008 , 07:47 AM



Hi Kent,

I think you need to pass the Row from ProcessInput to
CreateNewOutputRows.

If I remember correctly however, if you set the Output's
"SynchronousInputID" property to point to your Input, the output
buffer will automatically contain all of the columns and data from the
input buffer (and any additional columns you create).

Good luck!
J

Reply With Quote
  #10  
Old   
kent.eilers@res-direct.com
 
Posts: n/a

Default Re: copying inputbuffer to outputbuffer - 05-30-2008 , 12:39 PM



On May 30, 7:47 am, jhofm... (AT) googlemail (DOT) com wrote:
Quote:
Hi Kent,

I think you need to pass the Row from ProcessInput to
CreateNewOutputRows.

If I remember correctly however, if you set the Output's
"SynchronousInputID" property to point to your Input, the output
buffer will automatically contain all of the columns and data from the
input buffer (and any additional columns you create).

Good luck!
J
Good news !

I'll give it a try


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.