Viewing 15 posts - 7,006 through 7,020 (of 59,102 total)
Mine is similar but I took advantage of IIF. It still renders out as CASE expressions behind the scenes so no performance gain or anything like that. I also think...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 3, 2020 at 12:46 am
Your suggestion worked. Thanks. I am just getting the hang of this but will post the working formula even though there is probably a better way to do this.
CONVERT(DECIMAL...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2020 at 10:07 pm
Thank you both so much! I was trying to be cute and figure out how to use the PIVOT operation, but going back to the basics and using the...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2020 at 10:04 pm
These probably shouldn't be "scripts". They should be stored procedures (possibly in a permanent "utility" database) and then you can do what Scott has suggested to keep things safe.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2020 at 5:49 pm
Having trouble with the below formula. Technically I want to display it by a percentage with two decimal points but when I run the below I get it with...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2020 at 5:40 pm
MS has actually provided complex formulas for years. But it's so difficult to come up with accurate numbers to go into the formulas, and the result is only as...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2020 at 4:48 pm
My example was one of many. My point is instead of using exact points to try to hit an inclusive BETWEEN, use ranges that have an exact start and a...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2020 at 12:48 pm
As to reorganization, I believe it's still best practice to use reorg for columnstore tables (I'm on SQL 2016). Full rowgroups won't be affected at all by this process,...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2020 at 1:51 am
There's no magic formula to tell you the best fillfactor for 3,000 indexes. Or for 10 indexes, for that matter.
Actually, for non partitioned rowstore indexes, there is (it takes...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 2, 2020 at 1:21 am
Ok... now that I agree with. Thanks for your time, Rune.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 1, 2020 at 6:57 pm
So why not make it truly easy on yourself and use a "Open/Closed" bit of code and setup. For example, instead of say something like 2.01 to 3.oo as a...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 1, 2020 at 6:55 pm
Good question to showcase a new feature!
From a BI/DS perspective, this is potentially very useful for data profiling.
Do you have a short example or suggestion of when data profiling...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 1, 2020 at 3:24 pm
So, Paul... what are you going to do if a value comes in at, say, 2.005? That won't be caught by any range you've defined. Are you absolutely sure that...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 1, 2020 at 3:16 pm
Heh... there actually is a way. 😉 I've presented the method to just a couple of PASS chapters and I'm working on some proposed articles for a "Stairway".
--Jeff Moden
Change is inevitable... Change for the better is not.
June 1, 2020 at 2:55 pm
You say that you're "REBUILDing" indexes. Do you really mean that or are you including REORGANIZE, which I refer to as "Death by defragmentation"?
Obviously, I recommend NOT using REORGANIZE. It's...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 1, 2020 at 2:31 pm
Viewing 15 posts - 7,006 through 7,020 (of 59,102 total)