dbTalk Databases Forums  

Transform Data Task and RowCount delivered

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


Discuss Transform Data Task and RowCount delivered in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Guntram Ulrich
 
Posts: n/a

Default Transform Data Task and RowCount delivered - 05-11-2005 , 03:15 AM






Hi,

I have a task delivering every 15 minutes a number of lines from a database.

Is it possible to store the number of selected rows in a global variable for
further use in the package?

I donīt like to send two statements, one for the count and the next one for
the resultset because of performance problems.

Thanks for answers.

Best regards,
Guntram




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

Default Re: Transform Data Task and RowCount delivered - 05-11-2005 , 02:15 PM






Have a look at these properties on the DataPump task

RowsComplete
RowsInError



"Guntram Ulrich" <ulrich (AT) vivai (DOT) com> wrote


Quote:
Hi,

I have a task delivering every 15 minutes a number of lines from a database.

Is it possible to store the number of selected rows in a global variable for
further use in the package?

I donīt like to send two statements, one for the count and the next one for
the resultset because of performance problems.

Thanks for answers.

Best regards,
Guntram


Reply With Quote
  #3  
Old   
Darren Green
 
Posts: n/a

Default Re: Transform Data Task and RowCount delivered - 05-11-2005 , 04:23 PM



In message <uAp$F2lVFHA.2664 (AT) TK2MSFTNGP15 (DOT) phx.gbl>, Allan Mitchell
<allan (AT) no-spam (DOT) sqldts.com> writes
Quote:
Have a look at these properties on the DataPump task

RowsComplete
RowsInError


.... and you can use an ActiveX Script Task to read them and set the
global variable as required.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #4  
Old   
Guntram Ulrich
 
Posts: n/a

Default Re: Transform Data Task and RowCount delivered - 05-12-2005 , 09:17 AM



I am only working on dts tasks in the gui interface of the enterprise
manager.

Can you tell me where I can find these two properties?

Thanks in advance.

Best regards,
Guntram

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:uAp$F2lVFHA.2664 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Quote:
Have a look at these properties on the DataPump task

RowsComplete
RowsInError



"Guntram Ulrich" <ulrich (AT) vivai (DOT) com> wrote in message
news:ulrich (AT) vivai (DOT) com:

Hi,

I have a task delivering every 15 minutes a number of lines from a
database.

Is it possible to store the number of selected rows in a global variable
for
further use in the package?

I donīt like to send two statements, one for the count and the next one
for
the resultset because of performance problems.

Thanks for answers.

Best regards,
Guntram




Reply With Quote
  #5  
Old   
Panch
 
Posts: n/a

Default Re: Transform Data Task and RowCount delivered - 05-12-2005 , 12:12 PM



Create a Audit table and
keep track of your info using the 'Execute SQL task'

Panch


Reply With Quote
  #6  
Old   
Guntram Ulrich
 
Posts: n/a

Default Re: Transform Data Task and RowCount delivered - 05-12-2005 , 02:29 PM



This has helped me.

Thank you,
Guntram



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

Default Re: Transform Data Task and RowCount delivered - 05-13-2005 , 02:36 AM



These two properties are not "grabbable" from the GUI itself (You will
love 2005 though).

You will either need to compare row counts before and after in the table
OR you will have to write a small piece of Active X script to get the
values.

Allan

"Guntram Ulrich" <ulrich (AT) vivai (DOT) com> wrote


Quote:
I am only working on dts tasks in the gui interface of the enterprise
manager.

Can you tell me where I can find these two properties?

Thanks in advance.

Best regards,
Guntram

"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> schrieb im Newsbeitrag
news:uAp$F2lVFHA.2664 (AT) TK2MSFTNGP15 (DOT) phx.gbl...
Have a look at these properties on the DataPump task

RowsComplete
RowsInError



"Guntram Ulrich" <ulrich (AT) vivai (DOT) com> wrote in message
news:ulrich (AT) vivai (DOT) com:

Hi,

I have a task delivering every 15 minutes a number of lines from a
database.

Is it possible to store the number of selected rows in a global variable
for
further use in the package?

I donīt like to send two statements, one for the count and the next one
for
the resultset because of performance problems.

Thanks for answers.

Best regards,
Guntram



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 - 2013, Jelsoft Enterprises Ltd.