dbTalk Databases Forums  

Row sequence in derived column transform

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


Discuss Row sequence in derived column transform in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
John Grant
 
Posts: n/a

Default Row sequence in derived column transform - 01-16-2006 , 11:21 AM






Can I create a row sequence number in a derived column transform?

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

Default Re: Row sequence in derived column transform - 01-16-2006 , 01:15 PM






Hello John,

Why not use our transform?

http://www.sqlis.com/default.aspx?93


Allan



Quote:
Can I create a row sequence number in a derived column transform?




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

Default Re: Row sequence in derived column transform - 01-16-2006 , 01:15 PM



John Grant wrote:
Quote:
Can I create a row sequence number in a derived column transform?
No.

Row Number Transformation
(http://www.sqlis.com/default.aspx?93)

--
Darren
http://www.sqldts.com
http://www.sqlis.com


Reply With Quote
  #4  
Old   
John Grant
 
Posts: n/a

Default Re: Row sequence in derived column transform - 01-16-2006 , 08:03 PM



Nice transform, but if I am going to process through the data twice, once
with the derived column an once with your transform, then why not just save
the data from the derived tranform in a table and use execute SQL to create a
sequesnce column?

Also, can't I just add a function that the derived column transform can see
and use that . For example, derived column =
MySeqFunc([user::counter],increment)

thanks
-John

"Darren Green" wrote:

Quote:
John Grant wrote:
Can I create a row sequence number in a derived column transform?

No.

Row Number Transformation
(http://www.sqlis.com/default.aspx?93)

--
Darren
http://www.sqldts.com
http://www.sqlis.com


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

Default Re: Row sequence in derived column transform - 01-17-2006 , 12:39 AM



Hello John,

You cannot add a function to the derived column transform to derive an auto
incrementing number. You wouldn't be going through the data twice. It would
be one pipeline. Both of these components are Synchronous components and
as such are lightning quick. When you talk about using TSQL are you meaning
that you would stage the data to get the values before moving it on to your
real table? This would be expensive, almost certainly more so that the transforms.




Allan

Quote:
Nice transform, but if I am going to process through the data twice,
once with the derived column an once with your transform, then why not
just save the data from the derived tranform in a table and use
execute SQL to create a sequesnce column?

Also, can't I just add a function that the derived column transform
can see and use that . For example, derived column =
MySeqFunc([user::counter],increment)

thanks
-John
"Darren Green" wrote:

John Grant wrote:

Can I create a row sequence number in a derived column transform?

No.

Row Number Transformation
(http://www.sqlis.com/default.aspx?93)
--
Darren
http://www.sqldts.com
http://www.sqlis.com



Reply With Quote
  #6  
Old   
John Grant
 
Posts: n/a

Default Re: Row sequence in derived column transform - 01-17-2006 , 01:41 AM



I am not sure I understand. If I use 2 transforms is record 1 processed by
transform1 then transform2, then record 2, etc. Or is record 1-n processed
by transform1, then record 1-n processed by tranforms2? If the later is true
and my dataset exceeds memory will the results from tranform 1 not be written
to disk? If they are then is SQL Server that much more expensive.

Thanks for the help.

p.s. what a bummer you can't add functions to the derived column tranforms.


"Allan Mitchell" wrote:

Quote:
Hello John,

You cannot add a function to the derived column transform to derive an auto
incrementing number. You wouldn't be going through the data twice. It would
be one pipeline. Both of these components are Synchronous components and
as such are lightning quick. When you talk about using TSQL are you meaning
that you would stage the data to get the values before moving it on to your
real table? This would be expensive, almost certainly more so that the transforms.




Allan

Nice transform, but if I am going to process through the data twice,
once with the derived column an once with your transform, then why not
just save the data from the derived tranform in a table and use
execute SQL to create a sequesnce column?

Also, can't I just add a function that the derived column transform
can see and use that . For example, derived column =
MySeqFunc([user::counter],increment)

thanks
-John
"Darren Green" wrote:

John Grant wrote:

Can I create a row sequence number in a derived column transform?

No.

Row Number Transformation
(http://www.sqlis.com/default.aspx?93)
--
Darren
http://www.sqldts.com
http://www.sqlis.com




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

Default Re: Row sequence in derived column transform - 01-17-2006 , 02:03 PM



Hello John,

These are sync components so what happens is the rows flow into T1. You
have what is know as a buffer. When T1's buffer overfills it passes them
downstream. T1's buffer is immediately filled by the next rows. They move
as memory. They are very very very fast. A Sync transform has next to no
effect on perf.

Comparing Overhead On The Execution Methods
(http://www.sqlis.com/default.aspx?84)


Allan




Quote:
I am not sure I understand. If I use 2 transforms is record 1
processed by transform1 then transform2, then record 2, etc. Or is
record 1-n processed by transform1, then record 1-n processed by
tranforms2? If the later is true and my dataset exceeds memory will
the results from tranform 1 not be written to disk? If they are then
is SQL Server that much more expensive.

Thanks for the help.

p.s. what a bummer you can't add functions to the derived column
tranforms.

"Allan Mitchell" wrote:

Hello John,

You cannot add a function to the derived column transform to derive
an auto incrementing number. You wouldn't be going through the data
twice. It would be one pipeline. Both of these components are
Synchronous components and as such are lightning quick. When you
talk about using TSQL are you meaning that you would stage the data
to get the values before moving it on to your real table? This would
be expensive, almost certainly more so that the transforms.

Allan

Nice transform, but if I am going to process through the data twice,
once with the derived column an once with your transform, then why
not just save the data from the derived tranform in a table and use
execute SQL to create a sequesnce column?

Also, can't I just add a function that the derived column transform
can see and use that . For example, derived column =
MySeqFunc([user::counter],increment)

thanks
-John
"Darren Green" wrote:
John Grant wrote:

Can I create a row sequence number in a derived column transform?

No.

Row Number Transformation
(http://www.sqlis.com/default.aspx?93)
--
Darren
http://www.sqldts.com
http://www.sqlis.com



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.