help

  • i  am trying to do  a simple transformation through DTS.

    My source column TreatyNumber has values like

    MRQYP2C2

    MRQYP3C2

    MRQYP2C2

    what i want to do is take the 6th Digit which will be a 2 in the first instance (MRQYP2C2)

    and put it in my destination column which is TreatyID.I need to know only how to write

    VB script for this transformation.

    '**********************************************************************

    '  Visual Basic Transformation Script

    '************************************************************************

    '  Copy each source column to the destination column

    Function Main()

     DTSDestination("TreatyID") = DTSSource("TreatyNumber")

     Main = DTSTransformStat_OK

    End Function

    IP Logged

  • Please don't cross post.

    This is answered here: http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=334004

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply