hello Paul,
still i got this error when running the package with ssis
[ActiveX Script Task] Error: Retrieving the file name for a component failed
with error code 0x01AA3424.
the script include only this line ( for testing purpose )
MsgBox(Dts.Variables("myvariable").Value)
[quoted text, click to view] "Paul Ibison" wrote:
> In the script task, define myvar as a read only vairable to be passed into
> the script. That way you can use DTS.Variables("myvar").Value to refer to
> the variable's value.
> HTH,
> Paul Ibison
>
>
I only just spotted that you are using the ActiveX script task. Is there any
reason for using this task instead of the the Script task - the ActiveX
script task is deprecated and exists only for backward compatibility and if
you use the Script task the solution for the variables issue is pretty
straightforward.
HTH,
thanks Paul,
i changed the "dts.variables("myvariable").value"
to
"dtsglobalvariables("myvariable").value"
as in sql2000 and it works
where can i find a "visual basic script" guide ?
[quoted text, click to view] "Paul Ibison" wrote:
> I only just spotted that you are using the ActiveX script task. Is there any
> reason for using this task instead of the the Script task - the ActiveX
> script task is deprecated and exists only for backward compatibility and if
> you use the Script task the solution for the variables issue is pretty
> straightforward.
> HTH,
I just picked it up from examples on the web and from Ken Henderson's book.
VB.NET in this context isn't that different to the use of VBScript, but
accessing the object model is different in SSIS and far more restrictive.
Cheers,
Paul Ibison
Don't see what you're looking for? Try a search.