Viewing 15 posts - 4,546 through 4,560 (of 59,069 total)
I figured it might be better than my BSOFH method which is to take the database offline and wait for the email. 😀
I thought that was accepted "Best...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 28, 2021 at 12:45 am
There is a serious problem with the "equivalent" code you wrote though. It's not "equivalent" in the results for the last 3 tests. The table code comes up...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 28, 2021 at 12:41 am
@ Jonathan,
I modified your code and comments a bit to provide an easier to read output on SQL Profiler. I also made each snippet write to a throwaway variable to...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 4:54 pm
My belief is that you're doing this whole thing the wrong way. Have a look at how easy it can be at the following URL.
Depending on your reporting requirements,...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 3:25 pm
I figured it might be better than my BSOFH method which is to take the database offline and wait for the email. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 3:01 pm
I've always considered the following article to be a must read on this subject.
https://www.itprotoday.com/sql-server/new-solution-packing-intervals-problem
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 11:47 am
The way we do it is that we don't check when was the last transaction, we put an extended event capturing anything that goes into the database and we...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 11:35 am
Thank you Jeff. Spot on. Thanks
Scott was the first to respond. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 11:16 am
Thank you very much Jeff. I noticed one thing if there is none changed in the latest month it is not showing any record for the month it would...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 10:35 am
Data output is for information what output columns expected etc. may not need to exactly match. but around.
Thank you much and apologize for the troublesome code
asiri
Just remember... If you...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 2:05 am
That was just one of the problems with the data v.s. what you wanted for the output.
Anyway, here's the code you need.
WITH cte AS
(
SELECT FileMonth...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 1:53 am
The latest version of the code works just fine now. I also took a look at your expected output. We don't need to create any code to know that your...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 1:12 am
You really need to actually try to run the code you posted before you post it. Heh... you even apparently ignored what I told you what was wrong with the...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2021 at 12:01 am
Ok. That sounds like the only reason you're adding the GUID is to try to avoid fragmentation. By itself, that's probably not a good enough reason. And, again, there's no...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2021 at 11:54 pm
Not to mention "Y", "N", month names with no reference to a year and much more.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 26, 2021 at 11:05 pm
Viewing 15 posts - 4,546 through 4,560 (of 59,069 total)