473,657 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I capture DTS OnProgress events from Execute Package tasks?

My goal is to execute a DTS package that calls multiple child DTS packages
from a C# (2003) app and display the progress of the entire process to the
user.

I have followed the model defined in this knowledge base article. (
http://support.microsoft.com/?id=319985 ) to execute a DTS package and
monitor it's events. I'm not able to capture the events from a child package
that is called from an Execute Package task.

I've seen a few different writeups on the web that say it can't be done, and
some that say you need to create custom tasks on the main thread to capture
these events. I assume that this can be done because when I execute the
parent package through dtsrun, it returns output that reads "OnProgress " and
displays info about the child package.

Does anyone have an example of one of these custom tasks or have another
alternative solution?

Thanks
Rich
Jul 21 '05 #1
2 2916
Hi Rich,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to display progress of a DTS
package which contains some child packages. If there is any
misunderstandin g, please feel free to let me know.

As far as I know, the child DTS events cannot be get in C#. Because the
parent DTS package was executed without break. And the DTSPackage COM
library didn't expose that use us. So the whole execution progress of the
DTS package is transparent to us. We cannot get child events.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #2
Thanks.

"Kevin Yu [MSFT]" wrote:
Hi Rich,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to display progress of a DTS
package which contains some child packages. If there is any
misunderstandin g, please feel free to let me know.

As far as I know, the child DTS events cannot be get in C#. Because the
parent DTS package was executed without break. And the DTSPackage COM
library didn't expose that use us. So the whole execution progress of the
DTS package is transparent to us. We cannot get child events.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2074
by: Kate | last post by:
I am learning VB by working on an existing application. It is dawning on me that this particular program was not designed very carefully, and I have come to the point where I have to deal with this situation: One of the forms presents the user with high-level options. Depending on the option selected, certain frames are made visible. The controls in the frames include options, checkboxes, text boxes and labels, the settings of all of...
2
5924
by: aimee | last post by:
Hi. Is there a way to capture the events fired in a PrintDialog? I would like to capture when the user presses "Print" so I can do some cleanup. The asp.net (IE6) application I'm working on has 6 pages, each of which has a link to a "print view" page. That "print view" page has a "print" button which calls a javascript function "printThis": function printThis() { alert('printThis')
2
680
by: Rich Tasker | last post by:
My goal is to execute a DTS package that calls multiple child DTS packages from a C# (2003) app and display the progress of the entire process to the user. I have followed the model defined in this knowledge base article. ( http://support.microsoft.com/?id=319985 ) to execute a DTS package and monitor it's events. I'm not able to capture the events from a child package that is called from an Execute Package task. I've seen a few...
23
6493
by: pamelafluente | last post by:
Hi guys! I want to do a large number of scheduled task (say 80). Each task can be run at a certain time every given weekday. For instance at 10am and 5pm on each monday, etc. I would like to ask what is the best approach to check and run the scheduled events. The first (perhaps silly) thing that come up in my mind is to use a
3
1764
by: Nick Gilbert | last post by:
Hi, I'm using the following code to execute a DTS package from .NET: http://support.microsoft.com/?kbid=319985 However when I run my package from ASP.NET, only the OnQueryCancel event seems to fire. The OnProgress and OnError events do not fire. If I cause an error on purpose, a COMException is thrown.
3
2384
by: ajherringshaw | last post by:
I'm currently building a User Interface the launchs dts packages from VB. I am trying to use a timer control to measure elapsed time(time it takes for the dts to run). Currently the timer will run by itself without triggering the DTS to run. If I want the DTS to run and timer to start and show the elapsed time in a label.caption. How can I get both events to run at the same time. With the code below. The DTS will run then timer starts...
10
17692
by: lalnamar | last post by:
I want to execute a unix time command using perl, and capture the output (specifically, the time it takes the command to execute). i tried using the system command: system("time command "); however, when i try to capture the output, the capture output does not contain the amount of time it took to execute when i try to do: $var = `time command `; there is the same problem (the ouput from the command is saved in the variable; however,...
0
3843
by: =?Utf-8?B?c293b3Js?= | last post by:
I create the wcf service hosted in IIS. I tried to use "Web Service Task" to call this wcf service in SSIS package. in the Http Connection manager, server url : http://localhost/WCFService/Service.svc time out : 300 and then test connection successed. in the input of web service task editor, I can select the input service, and method -that means I can use the wcf
5
1262
by: =?Utf-8?B?QW50?= | last post by:
Hi, I am using a sqlCommand object to run a SP. The SP returns an output parameter that I retrieve the value of, & display. I want to use the StatementCompleted event of the command obj. to handle this output param through the sender object after the command completes. When I try to access this sender object (cast to a command object) & then reference the output parm, I get an error: "Object reference not set to an object"
0
8403
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8316
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8737
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8509
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1967
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.