May 29, 2026 at 12:00 am
Comments posted to this topic are about the item Five SQL Server 2022 T-SQL Functions You Should Be Using Right Now
May 30, 2026 at 3:30 am
Thanks for posting your issue and hopefully someone will answer soon.
This is an automated bump to increase visibility of your question.
June 3, 2026 at 1:41 am
First and foremost, great article. Thanks for taking the time to put it together.
A bit interesting on the Tally Table reads. I agree that it does cause reads but that's also one of the reasons why Itzik Ben-Gan created his famous GetNums() function and I created a similar fnTally() function, both of which are READLESS.
Even more interesting that you said the million row Tally Table cause 1.4 GB of buffer pool to be formed... I'll I'm going to have to look into that because the table itself is only 12.594 MB, which is more than a thousand times smaller.
Also, be aware... If you use the GENERATE_SERIES() function as a pseudo-cursor "row source" to create large tables (test or otherwise), GENERATE_SERIES() breaks "Minimal Logging" if you use it. You can read about that in the following article.
https://www.sqlservercentral.com/articles/generate_series-breaks-minimal-logging
--Jeff Moden
Change is inevitable... Change for the better is not.
June 10, 2026 at 4:52 pm
This is a quick reply to Jeff. I think 1.4 GB divided by 12.594 MB is closer to 111 than 1000. Did I miscalculate? I agree with your central point that the memory allocation seems excessive for the data.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply