blogs.conchango.com

welcome to the conchango blogging site
Welcome to blogs.conchango.com Sign in | Join | Help
in Search

SSIS Junkie

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

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

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

Leave a Comment

(required) 
(optional)
(required) 
Submit

This Blog

Syndication

News

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