Viewing 15 posts - 50,716 through 50,730 (of 59,102 total)
GSquared (5/7/2008)
Summary: While the CTE works, and is fast by any normal standard, the Numbers version is even faster, and requires...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 10:15 pm
GSquared (5/7/2008)
Just SP is fine (though I personally dislike the habit - as if anything other than a stored procedure might follow an EXEC keyword). It's SP_ (with an...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 9:59 pm
Carl Federl (5/7/2008)
There are advantages for having the Tally table include 0...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 9:55 pm
Marius Els (5/7/2008)
This is a great example of implementing set-based programming, three thumbs up from me.
Now to apply this to problems going forward!
Thanks for...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 9:44 pm
Mike DiRenzo (5/7/2008)
I look back on all the TSQL...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 9:41 pm
Carl Federl (5/7/2008)
The first reference for a tally table that I can recall is in "Guide to Sybase and SQL Server" by C. J. Date...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 9:37 pm
chris (5/7/2008)
No need for a tally or temporary tables.
Heres a params example:
DECLARE @Params varchar(8000)
SET @Params...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 9:27 pm
karthikeyan (5/7/2008)
Excellent Article!
It seems that you have written for me at the right time.:) Really, It is very useful for me.
Because so far i have replaced more than 5 cursors...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 8:53 pm
Chirag (5/7/2008)
nice article jeff.Here's another one with more uses of tally table.
http://www.simple-talk.com/sql/t-sql-programming/the-helper-table-workbench/
Thanks for the compliment, Chirag.
Yeah, they do have some neat uses on that particular link. It's very strange...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 8:50 pm
Calvin Lawson (5/7/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 8:38 pm
RyanRandall (5/7/2008)
Nice work, Jeff. That plural table name must've been difficult for you to come to terms with 😀
Heh... it kept me up all bloody night! But "When in...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 8:36 pm
Shamshad Ali (5/7/2008)
My quewtion is related to replacing loop, I am very interested on this. coz i really want to improve performance and I can't find a way to...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 8:34 pm
Heh... remember, you asked what could be done to make this more readable...
Here's one of your inserts including the indentation I found when I copied it... quick, you're...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 8:06 pm
Keith DuAime (5/7/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 6:35 pm
You folks are absolutely the Best! I'm humbled by your awesome compliments and the testing that alot of you have taken the time to do and post.
I've got a...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 7, 2008 at 8:07 am
Viewing 15 posts - 50,716 through 50,730 (of 59,102 total)