Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 182391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:55:53+00:00 2026-05-11T14:55:53+00:00

I would like to pass Variables from my package into Script Transformation Editor. How

  • 0

I would like to pass Variables from my package into Script Transformation Editor. How do I add this into my Row.Reference1 below?

Here’s the script that I use:

Imports System Imports System.Data Imports System.Math Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper Imports Microsoft.SqlServer.Dts.Runtime.Wrapper  Public Class ScriptMain     Inherits UserComponent  Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)          Row.Column1 = Tokenise(Row.Column0, '|', 1)         Row.Column2 = Tokenise(Row.Column0, '|', 2)         Row.Column3 = Tokenise(Row.Column0, '|', 3)         Row.Column4 = Tokenise(Row.Column0, '|', 4)         Row.Column5 = Tokenise(Row.Column0, '|', 5)         Row.Column6 = Tokenise(Row.Column0, '|', 6)         Row.Column7 = Tokenise(Row.Column0, '|', 7)         Row.Column8 = Tokenise(Row.Column0, '|', 8)         Row.Column9 = Tokenise(Row.Column0, '|', 9)         Row.Column10 = Tokenise(Row.Column0, '|', 10)         Row.Column11 = Tokenise(Row.Column0, '|', 11)         Row.Column12 = Tokenise(Row.Column0, '|', 12)         Row.Column13 = Tokenise(Row.Column0, '|', 13)         Row.Column14 = Tokenise(Row.Column0, '|', 14)         Row.Column15 = Tokenise(Row.Column0, '|', 15)         Row.Column16 = Tokenise(Row.Column0, '|', 16)         'Row.Reference1 = ???      End Sub  Private Function Tokenise(ByVal input As String, ByVal delimiter As String, ByVal token As Integer) As String          Dim tokenArray As String()         tokenArray = input.Split(delimiter.ToCharArray) 'Split the string by the delimiter         If tokenArray.Length < token Then 'Protect against a request for a token that doesn't exist             Return ''         Else             Return tokenArray(token - 1)         End If     End Function End Class 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:55:53+00:00Added an answer on May 11, 2026 at 2:55 pm

    On the ‘Script’ page of the Script Transformation Editor, the last section is ‘Custom Properties’. There are two properties: ReadOnlyVariables and ReadWriteVariables. Set those that are appropriate to a comma-separated list of the variables you want the script to reference.

    When you click the ‘Edit Script’ button, you’ll find that the Variables class created in the ComponentWrapper.vb now has properties with the names of the variables. The read-only variables will exist as readonly properties; the ReadWrite variables will exist as properties with both a getter and a setter.

    You then reference them as, for instance, Variables.TaskID.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a variable in a package ( rec in this case) that needs
I try to pass Package variable to my UserControl: <uc:Template ID=Template runat=server Package=<%=TemplateParams.SimpleSearch %>
On my web site I would like to have several sub-domains. Files that create
I have what seems to be a very tricky situation. I would like to
Right now I am launching a Python script from PHP using exec() as I
I would like to put some logging statements within test function to examine some
I've wrote a python script that need to pass millions of items to a
I am working on an authorization script that checks for user name, password and
Hi I am working on a simple desktop application, it needs to handle some
In a Django view you can access the request.GET['variablename'] , so in your view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.