没有看到更新的 SSIS 变量
在我的 SSIS 包(VS 2008)中,我有几个在脚本任务中设置的 ReadWrite 变量(包级别)。
当我调试任务时,我可以看到变量实际上已被设置。
但是,当我退出任务并查看“变量”窗口或在“包资源管理器”中时,这些变量仍然具有默认(空白)值。为什么???
谢谢!!
In my SSIS package (VS 2008) I have a couple of ReadWrite variables (package-level) that I am setting inside the script task.
When I debug the task, I can see that the variables are, in fact, getting set.
However, when I exit the task and look at the Variables window, or in the Package Explorer, those variables still have the default (blank) values. Why???
Thanks!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
变量窗口中显示的变量值仅显示包执行开始时的值。如果这些在执行期间发生变化,则不会反映出来,因为默认值在下一次执行时将保持不变(即默认值!)。希望这是有道理的!正如您所说,当您在调试时检查这些值时,这些值实际上会发生变化。
the variable values shown in the Variables window only show what the values will be when the package execution begins. If these change during execution, these are not reflected, as the default values will remain so (that is, the defaults!) for the next execution. Hope that makes sense! As you say, the values do actually change when you check them when debugging.
如果放置断点,则可以检查命中断点时的变量值。
If you put in breakpoints, you can check the variable values at the time the breakpoint was hit.