July 11, 2008 at 9:43 am
Of course your CLR function is going to beat the T-SQL function... you used RBAR on steriods... you need to test against a correctly written T-SQL function for this to be a valid test. I'll provide two different UDF's for addition testing, if you'd like, but using a While loop against a CLR isn't a real test of if a CLR is faster or not.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 16, 2008 at 1:09 am
Hi all,
thanks for all the replies...
Best Regards
Smerg
October 13, 2014 at 10:08 am
I was struggling with how to tackle this type of problem in T-SQL until I came across your sample code Jeff.
What can I say?
A bloody marvelous and timeless piece of T-SQL. It does exactly what I want it to do and I've learned something new in the process.
Thank you.
Viewing 3 posts - 16 through 18 (of 18 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy