Re: Task progress when executing a package via ActiveX

From: Darren Green (darren.green_at_reply-to-newsgroup-sqldts.com)
Date: 02/22/05


Date: Tue, 22 Feb 2005 22:12:06 +0000

In message <1109087138.761224.167020@f14g2000cwb.googlegroups.com>,
camler <clerner239@hotmail.com> writes
>I may be way off, but do you think you might be able to use the
>OnProgress event of the child package to update the dialog window of
>the parent package (WinForms or something)? Possibly changing
>properties or adding items to the dialog displayed?
>Just a thought.
>
>Thanks
>

The on progress event of a task, not a package, allows you to tell it
how far that task has got, which is what gives you the row counts or %
complete. This is at a task level however, and does not allow you to add
new lines to the dialog. If you wrote your own execute process task you
maybe able to give it some more meaningful progress info, but this is
still just one number for the entire child package.

The dialog is not exposed, and initial population is beyond your
control. The only way to do this would be to write your own execution
control, for the dialog, and your own execute package task that passed
up child events in a format the custom dialog could interpret. Still
almost impossible due to the way packages can change during execution,
so any initial investigation of the package and it's children, which
would be required to populate your custom dialog to start with, but may
not hold true during execution as you could change the child package
that was to be executed for example.

Try and think of DTS as a non-interactive tool, it may help :)

-- 
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com
PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org


Relevant Pages

  • Error attempting to execute a DTS package from an ADP
    ... "The Microsoft Jet database engine could not find the object '<my UNC ... I can run the package fine from there. ... -I tried restarting the SQL Server agent using the same user ID as the ... The execution of the following DTS Package failed: ...
    (microsoft.public.sqlserver.dts)
  • Re: Pass variables from parent DTS to child DTS package...
    ... Pass variables from parent DTS to child DTS package... ... I have a parent DTS that calls a child DTS through ActiveX scripts. ...
    (microsoft.public.sqlserver.dts)
  • Re: Execute SQL Task Error Capturing
    ... Execute package WithEvents and capture the OnError events. ... available during the current package execution. ... Log errors to SQL Server, package level option. ...
    (microsoft.public.sqlserver.dts)
  • No Steps have been defined for the transformation Package
    ... The package runs fine on sql server. ... The execution of the following DTS Package succeeded: ... Dim cnn as SqlConnection ...
    (microsoft.public.sqlserver.dts)
  • Re: running a SSIS package from a scheduled job sql server 2005
    ... Profiler would allow us to trace the execution statements against SQL Server so we could have seen where we were which would have helped us find where we may be stuck. ... If I create a package that truncates a table and I include the package ...
    (microsoft.public.sqlserver.dts)