SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Wierd behavior from an Aggregate dataflow task


Wierd behavior from an Aggregate dataflow task

Author
Message
aaron.reese
aaron.reese
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2277 Visits: 903
Hi guys,
I just wanted to know whether anyone else has experienced this and if so what the solution was.
I have a package that as part of a dataflow aggregates data, grouping on 5 columns and summing a sixth. The aggregate is supposed to create a single record which counts the number of lines in the datapipe ( the columns being summed always has a value of 1).

It has never failed in development, which is a 32bit laptop but on occassions in deployment it creates multiple output rows. the data viewer shows no difference in the aggregated columns.

My hypothesis is that before the aggregate I have a derived column task that adds a datetime using getdate() and that for some reason this is calculating different values even though the display value (which is only down to the second) is the same.

I am running BIDS2005 32bit on a Win2008 64bit virtual server when this behaviour is observed but it also happens when running from command line.

Unfortunately the package is permanently running as it uses Konesans file watcher so using the Package Start time variable is not an option for me. Also I dont want to use a script task to set a variable as we have no facility to support the vb script in the organisation (I am a contractor)
Phil Parkin
Phil Parkin
SSC-Forever
SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)

Group: General Forum Members
Points: 49015 Visits: 21133
You might be right. Why not try changing your getdate() accuracy to one minute to test your hypothesis?


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
Phil Parkin
Phil Parkin
SSC-Forever
SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)SSC-Forever (49K reputation)

Group: General Forum Members
Points: 49015 Visits: 21133
Phil Parkin (3/14/2013)
You might be right. Why not try changing your getdate() accuracy to one minute to test your hypothesis?


Or use MAX(Getdate()) rather than grouping by it.


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
aaron.reese
aaron.reese
SSCrazy
SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)SSCrazy (2.3K reputation)

Group: General Forum Members
Points: 2277 Visits: 903
Phil,

As usual, a simple solution to an annoying quirk of SSIS - Thanks. In this instance I am acutally only interested in the date so I have done a (DT_DBDATE)getdate(). I suppose I might still get a split if someone loads a file at 3 seconds to midnight...

Aaron
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search