![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I want to be able to pass progress information in an ActiveX script back to the calling application, e.g. 1000 records processed - like the built in tasks do. Is there a way to do this in SQL Server 2000? Thanks Gerhard |
#3
| |||
| |||
|
|
On Mon, 24 Apr 2006 08:27:56 -0700, Gerhard Wessels wrote: Hello, I want to be able to pass progress information in an ActiveX script back to the calling application, e.g. 1000 records processed - like the built in tasks do. Is there a way to do this in SQL Server 2000? Thanks Gerhard I forgot to add that I'd like the information to surface in the package's OnProgress event. |
#4
| |||
| |||
|
|
Gerhard. Have you had a look at this http://support.microsoft.com/default...EN-US;Q221193& |
#5
| |||
| |||
|
|
On Mon, 24 Apr 2006 11:46:30 -0400, Allan Mitchell wrote: Gerhard. Have you had a look at this http://support.microsoft.com/default...EN-US;Q221193& Allan, I want to be able to "push/fire" events so to speak from the DTS package back to the calling application. In my case the calling application is is a Delphi one using SQL-DMO. In one of my ActiveX tasks in my package I open a dataset and process batches of records in a while loop from the dataset. I want to be able to notify the calling app through the package's OnProgress event of the progress in the loop. My problem is that I have no way of knowing how far the task has progressed while it is running and when processing hundreds of thousands of records it appears as if nothing is happening. The link you've referred me to talks about getting access to the package's standard events from a VB application. |
#6
| |||
| |||
|
|
SQL DMO has nothing to do with DTS. You need to register the DTS Object library in your application. I have never used Delphi but would not expect it to be any different in this respect to registering the SQL DMO object library Try registering "Microsoft DTSPackage Object Library" (Dtspkg.dll ) Have a look here as well Redistributing DTS with your program (http://www.sqldts.com/default.aspx?225) |
#7
| |||
| |||
|
|
On Mon, 24 Apr 2006 15:19:32 -0400, Allan Mitchell wrote: SQL DMO has nothing to do with DTS. You need to register the DTS Object library in your application. I have never used Delphi but would not expect it to be any different in this respect to registering the SQL DMO object library Try registering "Microsoft DTSPackage Object Library" (Dtspkg.dll ) Have a look here as well Redistributing DTS with your program (http://www.sqldts.com/default.aspx?225) I use SQL-DMO to execute my DTS packages from a Delphi application. For what I want to do the calling application is irrelevant. It could be the package designer for that matter - so leave that out of the equation. All I want to do is to be able to fire the Package object's (obtained through DTSGlobalVariables.Parent from an ActiveX script task WHITHIN the package) OnProgress event in order to feed progress information of the script back to the calling app be it DTSRunUI/SQL Server package designer/Custom app whatever. When creating a custom task this is possible through the pPackageEvents object that is passed to the custom task's execute method. But how do I get to the pPackageEvents object from a standard ActiveX Script Task? I could achieve what I want to do by creating a custom task and firing the OnProgress event when appropriate, but first prize would be to be able to do this with an ActiveX Script Task. I hope this explains better what I want. |
#8
| |||
| |||
|
|
How are you firing a package through SQLDMO? DMO is the management API for SQL Server not DTS. I do not think you can do what you want through the Active X task alone. |
![]() |
| Thread Tools | |
| Display Modes | |
| |