dbTalk Databases Forums  

Capturing number of processed rows

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Capturing number of processed rows in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alex Prints
 
Posts: n/a

Default Capturing number of processed rows - 11-10-2005 , 12:39 PM






Hi everybody,

I use DTS from SQL Server 2000 P3

Does anybody know/have any recommendations on how to capture a number of
processed rows from transformation task? I need it for logging purposes.

Thank you,
Alex.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Capturing number of processed rows - 11-10-2005 , 02:12 PM






At the end of the task you can use an Active Script task and get the
following properties of the task

RowsComplete
RowsInError


allan


"Alex Prints" <AlexPrints (AT) discussions (DOT) microsoft.com> wrote


Quote:
Hi everybody,

I use DTS from SQL Server 2000 P3

Does anybody know/have any recommendations on how to capture a number of
processed rows from transformation task? I need it for logging purposes.

Thank you,
Alex.


Reply With Quote
  #3  
Old   
Alex Prints
 
Posts: n/a

Default Re: Capturing number of processed rows - 11-10-2005 , 05:10 PM



Thank you Allan! It works.

The only one thing. I want to pass the RowsComplete value to stored
procedure. It looks like I can do it in 2 steps only.
1. Capture the RowsComplete value into the global variable (ActiveX task).
2. Run stored procedure which accepts an input parameter from global
variable (Execute SQL task).

Is there an easier way to do that??

Thanks,
Alex.

"Allan Mitchell" wrote:

Quote:
At the end of the task you can use an Active Script task and get the
following properties of the task

RowsComplete
RowsInError


allan


"Alex Prints" <AlexPrints (AT) discussions (DOT) microsoft.com> wrote in message
news:AC195965-C9BA-4630-8924-F085760863CD (AT) microsoft (DOT) com:

Hi everybody,

I use DTS from SQL Server 2000 P3

Does anybody know/have any recommendations on how to capture a number of
processed rows from transformation task? I need it for logging purposes.

Thank you,
Alex.



Reply With Quote
  #4  
Old   
Alex Prints
 
Posts: n/a

Default Re: Capturing number of processed rows - 11-10-2005 , 05:20 PM



Also it took me a while to find the name of the task
("DTSTask_DTSDataPumpTask_1") and I don't see any way to edit it in the GUI.

Is it possible to edit it??


"Alex Prints" wrote:

Quote:
Thank you Allan! It works.

The only one thing. I want to pass the RowsComplete value to stored
procedure. It looks like I can do it in 2 steps only.
1. Capture the RowsComplete value into the global variable (ActiveX task).
2. Run stored procedure which accepts an input parameter from global
variable (Execute SQL task).

Is there an easier way to do that??

Thanks,
Alex.

"Allan Mitchell" wrote:

At the end of the task you can use an Active Script task and get the
following properties of the task

RowsComplete
RowsInError


allan


"Alex Prints" <AlexPrints (AT) discussions (DOT) microsoft.com> wrote in message
news:AC195965-C9BA-4630-8924-F085760863CD (AT) microsoft (DOT) com:

Hi everybody,

I use DTS from SQL Server 2000 P3

Does anybody know/have any recommendations on how to capture a number of
processed rows from transformation task? I need it for logging purposes.

Thank you,
Alex.



Reply With Quote
  #5  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Capturing number of processed rows - 11-10-2005 , 05:25 PM



Most people find either of these two articles helpful in situations like
this.

Global Variables and Stored Procedure Parameters
(http://www.sqldts.com/default.aspx?234)

Global Variables and SQL statements in DTS
(http://www.sqldts.com/default.aspx?205)


Allan

"Alex Prints" <AlexPrints (AT) discussions (DOT) microsoft.com> wrote


Quote:
Thank you Allan! It works.

The only one thing. I want to pass the RowsComplete value to stored
procedure. It looks like I can do it in 2 steps only.
1. Capture the RowsComplete value into the global variable (ActiveX
task).
2. Run stored procedure which accepts an input parameter from global
variable (Execute SQL task).

Is there an easier way to do that??

Thanks,
Alex.

"Allan Mitchell" wrote:


At the end of the task you can use an Active Script task and get the
following properties of the task

RowsComplete
RowsInError


allan


"Alex Prints" <AlexPrints (AT) discussions (DOT) microsoft.com> wrote in message
news:AC195965-C9BA-4630-8924-F085760863CD (AT) microsoft (DOT) com:


Hi everybody,

I use DTS from SQL Server 2000 P3

Does anybody know/have any recommendations on how to capture a
number of
processed rows from transformation task? I need it for logging
purposes.

Thank you,
Alex.





Reply With Quote
  #6  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Capturing number of processed rows - 11-10-2005 , 05:28 PM



Ok So you can change it using disconnected edit (right click the
designer surface) but if you do then make sure you change the associated
TaskName property of the associated step as well.

Allan

"Alex Prints" <AlexPrints (AT) discussions (DOT) microsoft.com> wrote


Quote:
Also it took me a while to find the name of the task
("DTSTask_DTSDataPumpTask_1") and I don't see any way to edit it in the
GUI.

Is it possible to edit it??


"Alex Prints" wrote:


Thank you Allan! It works.

The only one thing. I want to pass the RowsComplete value to stored
procedure. It looks like I can do it in 2 steps only.
1. Capture the RowsComplete value into the global variable (ActiveX
task).
2. Run stored procedure which accepts an input parameter from global
variable (Execute SQL task).

Is there an easier way to do that??

Thanks,
Alex.

"Allan Mitchell" wrote:


At the end of the task you can use an Active Script task and get the
following properties of the task

RowsComplete
RowsInError


allan


"Alex Prints" <AlexPrints (AT) discussions (DOT) microsoft.com> wrote in
message
news:AC195965-C9BA-4630-8924-F085760863CD (AT) microsoft (DOT) com:


Hi everybody,

I use DTS from SQL Server 2000 P3

Does anybody know/have any recommendations on how to capture a
number of
processed rows from transformation task? I need it for logging
purposes.

Thank you,
Alex.





Reply With Quote
  #7  
Old   
Alex Prints
 
Posts: n/a

Default Re: Capturing number of processed rows - 11-11-2005 , 09:39 AM



Thank you, Allan.

It works.

"Allan Mitchell" wrote:

Quote:
Ok So you can change it using disconnected edit (right click the
designer surface) but if you do then make sure you change the associated
TaskName property of the associated step as well.

Allan

"Alex Prints" <AlexPrints (AT) discussions (DOT) microsoft.com> wrote in message
news0F55E15-5717-42F9-B9C8-E80C3BF55C06 (AT) microsoft (DOT) com:

Also it took me a while to find the name of the task
("DTSTask_DTSDataPumpTask_1") and I don't see any way to edit it in the
GUI.

Is it possible to edit it??


"Alex Prints" wrote:


Thank you Allan! It works.

The only one thing. I want to pass the RowsComplete value to stored
procedure. It looks like I can do it in 2 steps only.
1. Capture the RowsComplete value into the global variable (ActiveX
task).
2. Run stored procedure which accepts an input parameter from global
variable (Execute SQL task).

Is there an easier way to do that??

Thanks,
Alex.

"Allan Mitchell" wrote:


At the end of the task you can use an Active Script task and get the
following properties of the task

RowsComplete
RowsInError


allan


"Alex Prints" <AlexPrints (AT) discussions (DOT) microsoft.com> wrote in
message
news:AC195965-C9BA-4630-8924-F085760863CD (AT) microsoft (DOT) com:


Hi everybody,

I use DTS from SQL Server 2000 P3

Does anybody know/have any recommendations on how to capture a
number of
processed rows from transformation task? I need it for logging
purposes.

Thank you,
Alex.






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.