Welcome to EMC Consulting Blogs Sign in | Join | Help

SSIS Junkie

Once upon a time this blog was a hive of activity. Now however its pretty lifeless as you can probably tell so if are pining for more of the same you can find me over at http://sqlblog.com/blogs/jamie_thomson. I look forward to seeing you there!

SS: Calculate Running Totals (2)

You may have read my post yeterday talking about a method of calculating running totals that was based on a post by Adam Machanic. Adam quite rightly pointed out that my solution used an undocumented feature and was therefore not preferable.

Instead, Adam has improved the execution time still further without using a cursor and without using undocumented features. Use SQLCLR instead. Here's his method: http://sqljunkies.com/WebLog/amachanic/archive/2006/02/28/18309.aspx

So not only has he eliminated the use of cursors and in the process provided a MUCH quicker solution, he has also proven the value of integrating the CLR within SQL Server. Great job Adam!

It may take a while to read through this post thread but I highly recommend that you do if you're interested in performance tuning SQL Server or understanding the SQLCLR integration in SQL2005!

Of course, this is only of use if you're using SQL2005 but there's plenty of other solutions in this thread that you can use if you're not!

-Jamie

 

Published 01 March 2006 08:12 by jamie.thomson

Comments

 

SimonS' SQL Server Stuff said:

I was looking to answer a users question on the forums this evening when I realised there is another...
March 12, 2006 21:25
 

SimonS' SQL Server Stuff said:

I was looking to answer a users question on the forums this evening when I realised there is another...
May 23, 2006 10:16
 

SimonS SQL Server Stuff said:

I was looking to answer a users question on the forums this evening when I realised there is another

August 12, 2007 00:54
New Comments to this post are disabled

This Blog

Syndication

Powered by Community Server (Personal Edition), by Telligent Systems