dbTalk Databases Forums  

Newbie Question on Variables

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


Discuss Newbie Question on Variables in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rminder
 
Posts: n/a

Default Newbie Question on Variables - 12-01-2008 , 09:51 AM






I am getting my feet wet in learning SSIS by taking over a somewhat complex
package. My question has to do with variables. In the Script Task Editor,
when I click on 'Script' on the left, on the right I see something called
ReadWriteVariables. When I enter variable names in this field, do I have
access to these variables anywhere in my package, or just the current script?

Thanks very much - Randy

Reply With Quote
  #2  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Newbie Question on Variables - 12-01-2008 , 03:37 PM






You can access variables anywhere within a package. However, you still have
to specify whether you need read/write or just read access within a Script
task.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau


"rminder" <rminder (AT) discussions (DOT) microsoft.com> wrote

I am getting my feet wet in learning SSIS by taking over a somewhat complex
package. My question has to do with variables. In the Script Task Editor,
when I click on 'Script' on the left, on the right I see something called
ReadWriteVariables. When I enter variable names in this field, do I have
access to these variables anywhere in my package, or just the current
script?

Thanks very much - Randy


Reply With Quote
  #3  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Newbie Question on Variables - 12-01-2008 , 03:37 PM



You can access variables anywhere within a package. However, you still have
to specify whether you need read/write or just read access within a Script
task.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau


"rminder" <rminder (AT) discussions (DOT) microsoft.com> wrote

I am getting my feet wet in learning SSIS by taking over a somewhat complex
package. My question has to do with variables. In the Script Task Editor,
when I click on 'Script' on the left, on the right I see something called
ReadWriteVariables. When I enter variable names in this field, do I have
access to these variables anywhere in my package, or just the current
script?

Thanks very much - Randy


Reply With Quote
  #4  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Newbie Question on Variables - 12-01-2008 , 03:37 PM



You can access variables anywhere within a package. However, you still have
to specify whether you need read/write or just read access within a Script
task.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau


"rminder" <rminder (AT) discussions (DOT) microsoft.com> wrote

I am getting my feet wet in learning SSIS by taking over a somewhat complex
package. My question has to do with variables. In the Script Task Editor,
when I click on 'Script' on the left, on the right I see something called
ReadWriteVariables. When I enter variable names in this field, do I have
access to these variables anywhere in my package, or just the current
script?

Thanks very much - Randy


Reply With Quote
  #5  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Newbie Question on Variables - 12-01-2008 , 03:37 PM



You can access variables anywhere within a package. However, you still have
to specify whether you need read/write or just read access within a Script
task.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau


"rminder" <rminder (AT) discussions (DOT) microsoft.com> wrote

I am getting my feet wet in learning SSIS by taking over a somewhat complex
package. My question has to do with variables. In the Script Task Editor,
when I click on 'Script' on the left, on the right I see something called
ReadWriteVariables. When I enter variable names in this field, do I have
access to these variables anywhere in my package, or just the current
script?

Thanks very much - Randy


Reply With Quote
  #6  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Newbie Question on Variables - 12-01-2008 , 03:37 PM



You can access variables anywhere within a package. However, you still have
to specify whether you need read/write or just read access within a Script
task.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau


"rminder" <rminder (AT) discussions (DOT) microsoft.com> wrote

I am getting my feet wet in learning SSIS by taking over a somewhat complex
package. My question has to do with variables. In the Script Task Editor,
when I click on 'Script' on the left, on the right I see something called
ReadWriteVariables. When I enter variable names in this field, do I have
access to these variables anywhere in my package, or just the current
script?

Thanks very much - Randy


Reply With Quote
  #7  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Newbie Question on Variables - 12-01-2008 , 03:37 PM



You can access variables anywhere within a package. However, you still have
to specify whether you need read/write or just read access within a Script
task.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau


"rminder" <rminder (AT) discussions (DOT) microsoft.com> wrote

I am getting my feet wet in learning SSIS by taking over a somewhat complex
package. My question has to do with variables. In the Script Task Editor,
when I click on 'Script' on the left, on the right I see something called
ReadWriteVariables. When I enter variable names in this field, do I have
access to these variables anywhere in my package, or just the current
script?

Thanks very much - Randy


Reply With Quote
  #8  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Newbie Question on Variables - 12-01-2008 , 03:37 PM



You can access variables anywhere within a package. However, you still have
to specify whether you need read/write or just read access within a Script
task.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau


"rminder" <rminder (AT) discussions (DOT) microsoft.com> wrote

I am getting my feet wet in learning SSIS by taking over a somewhat complex
package. My question has to do with variables. In the Script Task Editor,
when I click on 'Script' on the left, on the right I see something called
ReadWriteVariables. When I enter variable names in this field, do I have
access to these variables anywhere in my package, or just the current
script?

Thanks very much - Randy


Reply With Quote
  #9  
Old   
Tom Moreau
 
Posts: n/a

Default Re: Newbie Question on Variables - 12-01-2008 , 03:37 PM



You can access variables anywhere within a package. However, you still have
to specify whether you need read/write or just read access within a Script
task.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau


"rminder" <rminder (AT) discussions (DOT) microsoft.com> wrote

I am getting my feet wet in learning SSIS by taking over a somewhat complex
package. My question has to do with variables. In the Script Task Editor,
when I click on 'Script' on the left, on the right I see something called
ReadWriteVariables. When I enter variable names in this field, do I have
access to these variables anywhere in my package, or just the current
script?

Thanks very much - Randy


Reply With Quote
  #10  
Old   
Todd C
 
Posts: n/a

Default Re: Newbie Question on Variables - 12-02-2008 , 08:06 AM



Randy:
You need to define the Variables before you can use them. And when you do,
pay particular attention to the Scope of the variables. One created in the
scope of a For Each loop will not be accessible to Tasks *outside* the loop.

Right click on the Control Flow and select Variables.
--
Todd C

"Tom Moreau" wrote:

Quote:
You can access variables anywhere within a package. However, you still have
to specify whether you need read/write or just read access within a Script
task.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau


"rminder" <rminder (AT) discussions (DOT) microsoft.com> wrote in message
news27769A3-DAF9-4756-9638-B0F4654C98F3 (AT) microsoft (DOT) com...
I am getting my feet wet in learning SSIS by taking over a somewhat complex
package. My question has to do with variables. In the Script Task Editor,
when I click on 'Script' on the left, on the right I see something called
ReadWriteVariables. When I enter variable names in this field, do I have
access to these variables anywhere in my package, or just the current
script?

Thanks very much - Randy



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.