问题
How do you create a variable of scope EnvVariable as shown in this screenshot
of this StackOverflow Answer?
回答1:
The scope usually represents the Package
name or a Control Flow task
name. Here in this case, EnvVariable
represents the package name. Refer screenshot #4. To create a variable, follow the below mentioned steps.
- Right-click on the package and select
Variables
. Refer screenshot #1. - On the
Variables
pane, click the first icon to create a variable. Refer screenshot #2. - By default, the variable will be named
Variable
. Change the name to FilePath. - By default, the variable data type will be
Int32
. Change the data type to String. - You can also access the Variables pane from
SSIS
menu -->Variables
. Make sure that you click on the package. Otherwise, the options won't be visible. Refer screenshot #3.
Hope that helps.
Screenshot #1:
Screenshot #2:
Screenshot #3:
Screenshot #4:
来源:https://stackoverflow.com/questions/6227138/how-do-you-create-a-variable-of-scope-envvariable