dbTalk Databases Forums  

number of rows transferred by DTS task

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


Discuss number of rows transferred by DTS task in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Malgorzata Ndreu
 
Posts: n/a

Default number of rows transferred by DTS task - 06-08-2004 , 11:02 AM







Hi all,
At the end of transfer dts task there is always information of how many rows were transferred. Is it possible to get this information into a global variable and pass it out of the package, let's say to the application calling it?
Any suggest appreciated
---------------------
Best regards,
Gosia Ndreu



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

Default Re: number of rows transferred by DTS task - 06-08-2004 , 02:29 PM






The amount of rows transferred in a DataPump task can be gleaned from the

..RowsComplete property and also look at the RowsInError property

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Malgorzata Ndreu" <mndreu (AT) maritweb (DOT) com> wrote


Hi all,
At the end of transfer dts task there is always information of how many rows
were transferred. Is it possible to get this information into a global
variable and pass it out of the package, let's say to the application
calling it?
Any suggest appreciated
---------------------
Best regards,
Gosia Ndreu




Reply With Quote
  #3  
Old   
mndr
 
Posts: n/a

Default Re: number of rows transferred by DTS task - 06-09-2004 , 01:25 AM



Thank you very much, maybe you know how it can be done from Data Driven Query task in case i have update query and insert query (separately for each)?

--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
The amount of rows transferred in a DataPump task can be gleaned from the

.RowsComplete property and also look at the RowsInError property

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Malgorzata Ndreu" <mndreu (AT) maritweb (DOT) com> wrote in message
news:u4SaTIXTEHA.3332 (AT) TK2MSFTNGP12 (DOT) phx.gbl...

Hi all,
At the end of transfer dts task there is always information of how many rows
were transferred. Is it possible to get this information into a global
variable and pass it out of the package, let's say to the application
calling it?
Any suggest appreciated
---------------------
Best regards,
Gosia Ndreu




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

Default Re: number of rows transferred by DTS task - 06-09-2004 , 01:52 AM



I have never tried to capture them for the DDQ but the properties mentioned
are available. The problem being though that they are a property of the
Task and not the individual queries so I would imagine you will see a total
for the task and not seperate totals for each query.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mndr" <mndreu (AT) maritweb (DOT) com> wrote

Thank you very much, maybe you know how it can be done from Data Driven
Query task in case i have update query and insert query (separately for
each)?

--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
The amount of rows transferred in a DataPump task can be gleaned from the

.RowsComplete property and also look at the RowsInError property

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Malgorzata Ndreu" <mndreu (AT) maritweb (DOT) com> wrote in message
news:u4SaTIXTEHA.3332 (AT) TK2MSFTNGP12 (DOT) phx.gbl...

Hi all,
At the end of transfer dts task there is always information of how many
rows
were transferred. Is it possible to get this information into a global
variable and pass it out of the package, let's say to the application
calling it?
Any suggest appreciated
---------------------
Best regards,
Gosia Ndreu






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

Default Re: number of rows transferred by DTS task - 06-09-2004 , 01:59 AM



Is it maybe possible to put such information into a variable in some kind of loop, and what about reading the variable value out of the package?

--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
I have never tried to capture them for the DDQ but the properties mentioned
are available. The problem being though that they are a property of the
Task and not the individual queries so I would imagine you will see a total
for the task and not seperate totals for each query.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mndr" <mndreu (AT) maritweb (DOT) com> wrote in message
news:OPPBeqeTEHA.3140 (AT) tk2msftngp13 (DOT) phx.gbl...
Thank you very much, maybe you know how it can be done from Data Driven
Query task in case i have update query and insert query (separately for
each)?

--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:uxqZT4YTEHA.204 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
The amount of rows transferred in a DataPump task can be gleaned from the

.RowsComplete property and also look at the RowsInError property

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Malgorzata Ndreu" <mndreu (AT) maritweb (DOT) com> wrote in message
news:u4SaTIXTEHA.3332 (AT) TK2MSFTNGP12 (DOT) phx.gbl...

Hi all,
At the end of transfer dts task there is always information of how many
rows
were transferred. Is it possible to get this information into a global
variable and pass it out of the package, let's say to the application
calling it?
Any suggest appreciated
---------------------
Best regards,
Gosia Ndreu






Reply With Quote
  #6  
Old   
mndr
 
Posts: n/a

Default Re: number of rows transferred by DTS task - 06-09-2004 , 02:14 AM



There is one more problem with that, in DDQ task i run a conditional update query, in case source records do not satisfy condition i have SkipRow status, but actually at the end i get the complete number of rows from the source, even they wrere not processed (or maybe were in some meaning?)
What can i do to get the number of rows in fact updated not aolny read?
Thanks for reply

--
---------------------
Best regards,
Gosia Ndreu


"mndr" <mndreu (AT) maritweb (DOT) com> wrote

Is it maybe possible to put such information into a variable in some kind of loop, and what about reading the variable value out of the package?

--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
I have never tried to capture them for the DDQ but the properties mentioned
are available. The problem being though that they are a property of the
Task and not the individual queries so I would imagine you will see a total
for the task and not seperate totals for each query.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mndr" <mndreu (AT) maritweb (DOT) com> wrote in message
news:OPPBeqeTEHA.3140 (AT) tk2msftngp13 (DOT) phx.gbl...
Thank you very much, maybe you know how it can be done from Data Driven
Query task in case i have update query and insert query (separately for
each)?

--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:uxqZT4YTEHA.204 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
The amount of rows transferred in a DataPump task can be gleaned from the

.RowsComplete property and also look at the RowsInError property

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Malgorzata Ndreu" <mndreu (AT) maritweb (DOT) com> wrote in message
news:u4SaTIXTEHA.3332 (AT) TK2MSFTNGP12 (DOT) phx.gbl...

Hi all,
At the end of transfer dts task there is always information of how many
rows
were transferred. Is it possible to get this information into a global
variable and pass it out of the package, let's say to the application
calling it?
Any suggest appreciated
---------------------
Best regards,
Gosia Ndreu






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

Default Re: number of rows transferred by DTS task - 06-09-2004 , 02:25 AM



If you skip the row then I presume nothing is actually updated.

The DDQ may not be what you are after.

For INSERTs I use a DataPump task and do the counting there.
For UPDATEs I use an ExecuteSQL task and read the rows affected into a
variable.

Maybe you can do this also.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mndr" <mndreu (AT) maritweb (DOT) com> wrote

There is one more problem with that, in DDQ task i run a conditional update
query, in case source records do not satisfy condition i have SkipRow
status, but actually at the end i get the complete number of rows from the
source, even they wrere not processed (or maybe were in some meaning?)
What can i do to get the number of rows in fact updated not aolny read?
Thanks for reply

--
---------------------
Best regards,
Gosia Ndreu


"mndr" <mndreu (AT) maritweb (DOT) com> wrote

Is it maybe possible to put such information into a variable in some kind of
loop, and what about reading the variable value out of the package?

--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
I have never tried to capture them for the DDQ but the properties
mentioned
are available. The problem being though that they are a property of the
Task and not the individual queries so I would imagine you will see a
total
for the task and not seperate totals for each query.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mndr" <mndreu (AT) maritweb (DOT) com> wrote in message
news:OPPBeqeTEHA.3140 (AT) tk2msftngp13 (DOT) phx.gbl...
Thank you very much, maybe you know how it can be done from Data Driven
Query task in case i have update query and insert query (separately for
each)?

--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:uxqZT4YTEHA.204 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
The amount of rows transferred in a DataPump task can be gleaned from
the

.RowsComplete property and also look at the RowsInError property

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Malgorzata Ndreu" <mndreu (AT) maritweb (DOT) com> wrote in message
news:u4SaTIXTEHA.3332 (AT) TK2MSFTNGP12 (DOT) phx.gbl...

Hi all,
At the end of transfer dts task there is always information of how many
rows
were transferred. Is it possible to get this information into a global
variable and pass it out of the package, let's say to the application
calling it?
Any suggest appreciated
---------------------
Best regards,
Gosia Ndreu








Reply With Quote
  #8  
Old   
mndr
 
Posts: n/a

Default Re: number of rows transferred by DTS task - 06-09-2004 , 02:44 AM



Thanks a lot, probably yes, i have just found out the new DDQ task and was happy to have very powerfull tool to do everything what i need in one step, but unfortunately my expectations were too high
thanks a lot for your help
--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
If you skip the row then I presume nothing is actually updated.

The DDQ may not be what you are after.

For INSERTs I use a DataPump task and do the counting there.
For UPDATEs I use an ExecuteSQL task and read the rows affected into a
variable.

Maybe you can do this also.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mndr" <mndreu (AT) maritweb (DOT) com> wrote in message
news:%23UKmzFfTEHA.3752 (AT) TK2MSFTNGP12 (DOT) phx.gbl...
There is one more problem with that, in DDQ task i run a conditional update
query, in case source records do not satisfy condition i have SkipRow
status, but actually at the end i get the complete number of rows from the
source, even they wrere not processed (or maybe were in some meaning?)
What can i do to get the number of rows in fact updated not aolny read?
Thanks for reply

--
---------------------
Best regards,
Gosia Ndreu


"mndr" <mndreu (AT) maritweb (DOT) com> wrote in message
news:%23yRoI9eTEHA.3012 (AT) tk2msftngp13 (DOT) phx.gbl...
Is it maybe possible to put such information into a variable in some kind of
loop, and what about reading the variable value out of the package?

--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:%23m$CU2eTEHA.1168 (AT) TK2MSFTNGP11 (DOT) phx.gbl...
I have never tried to capture them for the DDQ but the properties
mentioned
are available. The problem being though that they are a property of the
Task and not the individual queries so I would imagine you will see a
total
for the task and not seperate totals for each query.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"mndr" <mndreu (AT) maritweb (DOT) com> wrote in message
news:OPPBeqeTEHA.3140 (AT) tk2msftngp13 (DOT) phx.gbl...
Thank you very much, maybe you know how it can be done from Data Driven
Query task in case i have update query and insert query (separately for
each)?

--
---------------------
Best regards,
Gosia Ndreu


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message
news:uxqZT4YTEHA.204 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
The amount of rows transferred in a DataPump task can be gleaned from
the

.RowsComplete property and also look at the RowsInError property

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Malgorzata Ndreu" <mndreu (AT) maritweb (DOT) com> wrote in message
news:u4SaTIXTEHA.3332 (AT) TK2MSFTNGP12 (DOT) phx.gbl...

Hi all,
At the end of transfer dts task there is always information of how many
rows
were transferred. Is it possible to get this information into a global
variable and pass it out of the package, let's say to the application
calling it?
Any suggest appreciated
---------------------
Best regards,
Gosia Ndreu








Reply With Quote
  #9  
Old   
John Miceli, MCDBA
 
Posts: n/a

Default RE: number of rows transferred by DTS task - 06-09-2004 , 06:06 PM



You could make life a little easier on yourself and just pop the count information out to a table. This would allow easy access to the info and history if you really wanted it. You also end up with lots of flexibility with very little code

Regards
John Miceli, MCDBA

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

Default Re: number of rows transferred by DTS task - 06-10-2004 , 01:23 AM



The only problem with that method is that in a moderately used system that
figure by the time you get to doing the data transfer may be out of date.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


<John Miceli>; "MCDBA" <jmiceli (AT) wrberkley (DOT) com> wrote

Quote:
You could make life a little easier on yourself and just pop the count
information out to a table. This would allow easy access to the info and
history if you really wanted it. You also end up with lots of flexibility
with very little code.
Quote:
Regards,
John Miceli, MCDBA



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.