Go Back   CORTEX Forums > Local Happenings > CORTEX Blogs > BI Monkey
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

The Script Transformation part 3 ? as a Destination

This is a discussion on The Script Transformation part 3 ? as a Destination within the BI Monkey forums, part of the CORTEX Blogs category; Fig 1: The Script Transformation In this post I will be covering using the Script Transformation as a Destination . The sample package can be found here for 2005 and ...


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 9th September 2009, 11:49 PM   #1
Guru
 
Join Date: Jun 2009
Posts: 135
James Beresford is on a distinguished road
Thumbs up The Script Transformation part 3 ? as a Destination

Fig 1: The Script Transformation


In this post I will be covering using the Script Transformation as a Destination. The sample package can be found here for 2005 and guidelines on use are here.

How can you use the Script Component as a destination?

As before, when dropping the Script Component on the Data Flow surface, you get three choices for what you want to use it as – in this case, you would select Destination. This by default creates a component with a single input and no outputs.You will have to manually define and type the input columns, and the component will only accept a single input.

Each option selected provides a different code template as well, and for a Destination you get code designed to consume incoming rows via the ProcessInputRow method. My example code below simply counts the rows pushed through the component.
Public Class ScriptMain
Inherits UserComponent

Dim RowCount As Integer = 0

Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)

‘ Increase row count
RowCount = RowCount + 1

‘ Message box giving progress


MsgBox(RowCount.ToString, MsgBoxStyle.OkOnly, “I have processed this many rows:”)

End Sub

End Class

This pretty much concludes my review of the Script Component, though there is more that can be done with it. However to get much further i’d have to get deeper into the coding, an area I have sketchy knowledge of!

Where would you use the Script Component as a destination?

This component can be used in this manner in order to deliver data to a destination that cannot be reached by a standard component, such as a Web Service or non standard flat file.

MSDN Documentation for the Script Transformation can be found here for 2008 and here for 2005.

If you are still struggling, try these additional resources:
If you need specific help or advice, or have suggestions on the post, please leave a comment and I will do my best to help you.



Get More from the original blog...
James Beresford is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiTweet this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Script Transformation part 2 ? as a Source James Beresford BI Monkey 0 6th September 2009 09:09 PM
The Script Transformation part 1 ? a simple Transformation James Beresford BI Monkey 0 1st September 2009 02:01 PM
Getting File Information with the Script Task James Beresford BI Monkey 0 26th August 2009 06:37 PM
The Slowly Changing Dimension Transformation, part 2 ? Type 2 Dimensions James Beresford BI Monkey 0 11th August 2009 11:58 AM
The Slowly Changing Dimension Transformation, part 1 James Beresford BI Monkey 0 28th July 2009 10:37 PM


All times are GMT +11. The time now is 11:07 PM.

© The Business Intelligence Group

Search Engine Optimization by vBSEO