Viewing 15 posts - 6,391 through 6,405 (of 59,089 total)
Your efforts are much appreciated but the COUNT(*) stuff is going to confuse the very newbies that you're trying to not confuse (by using fnNumbers as the name).
I've also found...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 22, 2020 at 4:55 pm
Hi @Grant Fritchey thanks for your reply, we are moving towards backup and restore on AWS RDS but in the meantime I need to use this procedure, can you...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 22, 2020 at 4:45 pm
I want to number weeks from April to September for every year, such that week 1 starts 1st of April and ends the following Saturday and week 2 starts...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 22, 2020 at 3:55 am
Hi Andrew-
Thanks for turning me on to Jeff Modon. Loved his article and sense of humor.
I corrected the length of the @status parameter to 250.
I put the following after...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 22, 2020 at 1:13 am
True enough. Thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 22, 2020 at 12:55 am
Maybe my confusion on this subject is that maybe I've guessed wrong about what you mean by "Minimal" so let's look back at your original question...
What is the minimal...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 22, 2020 at 12:11 am
Any MDF, NDF, or LDF file currently being used by SQL Server cannot be modified in any way. With that in mind (and it would also work if multiple instances...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 21, 2020 at 7:11 pm
Jeff published a wonderfull article called: Create a Tally Function
Thank you for the kudo. If you've not subscribed to the article discussion, you may want to. I've found...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 21, 2020 at 6:44 pm
Jeff, I was going to mark your response above as the answer but it actually doesn't answer the question. Your answer is merely complete and I asked for minimal. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 21, 2020 at 5:34 pm
Ah... almost forgot... What to do about the folks that claim that performance doesn't matter if you know that here will always only be a small number of...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 20, 2020 at 7:06 pm
That person's query also contained a RIGHT OUTER JOIN. When was the last time you actually saw one of those not in a textbook?
About 10 minutes ago. I use...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 20, 2020 at 6:55 pm
Some things CAN be done in SQL, but can be done so much faster and/or easier in other languages.
While that is certainly true, I find that it's a matter...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 20, 2020 at 3:16 am
Ok here are two recent winning recursive cte's. Be gentle when evaluating the opposing answers 🙂
https://stackoverflow.com/questions/63922869/get-an-interval-of-dates-from-a-range-of-dates/63923536
https://stackoverflow.com/questions/63919706/fill-missing-months-on-a-date-query/63920844
As a bonus, here losing while using an ordinal splitter
https://stackoverflow.com/questions/63886788/extracting-date-from-text-in-sql-using-cursor/63887736
Thank you for posting those...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 20, 2020 at 12:19 am
Ah... almost forgot... What to do about the folks that claim that performance doesn't matter if you know that there will always only be a small number of rows involved...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 19, 2020 at 9:46 pm
Ok, here we go...
The code that you originally wrote generates the full range of values that the inline cascading CTE for the Tally cte can generate and it does so...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 19, 2020 at 8:07 pm
Viewing 15 posts - 6,391 through 6,405 (of 59,089 total)