Viewing 15 posts - 2,971 through 2,985 (of 59,091 total)
The difference between a datetime vs a datetime2 for this seems not very relevant for just capturing entry date the precision difference between the two is within the margin...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 10:56 pm
Thanks Jeff this looks fantastic! I truly appreciate the time you took to put this together.
I updated the CTEs to the best of my understanding but I can not...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 9:23 pm
Huh? why would that be?
I have no clue about why that would be. It was an observation especially but not limited to what should have been VARCHAR data...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 5:12 pm
What sort of overhead does it have on the server when running, and any idea of duration on a 2.1 billion ow table?
There have been a lot of ideas...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 5:08 pm
First, thanks Jeffrey and Steve for the feedback.
Also, I'll state that I never make final performance decisions based on what's in an execution plan and so I'm going to have...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 4:47 pm
p.s. Since you've not been around since the 90's, you might want to have a look at the introduction to a technique that is extremely useful for a whole lot...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 4:39 pm
Thank you Jeff.
It was just an example code from a book I'm reading intended to exemplify the use of WHILE in TSQL. Maybe it's not the best example, but...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 4:26 pm
The reason for the Derived Table "X" is so that they can use a WHERE clause to control how may rows are returned much like would be done using a...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 1:06 am
Ed, what's your take on using Column Store for column-oriented (they record the entity and the column that changed as well as the "OldValue" and the "NewValue {big mistake on...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 15, 2022 at 10:49 pm
Bruin wrote:Is there a script that will report savings for Page Compression?
Thanks.
yes - its called "read the manual"
Sometimes, that's difficult because a lot of technical manuals aren't...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 15, 2022 at 7:21 pm
Now, I don't want to hijack this thread into EF tuning... but there are code smells in LINQ just like there are in T-SQL. My pet peeve is join...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 15, 2022 at 7:16 pm
So.. just to be sure from your example data...
101 has never been changed.
102 was replaced by 103 which was replaced by 104.
Is that correct?
If so, a hierarchical recursive CTE (rCTE)...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 15, 2022 at 7:07 pm
For me and just IMHO...
If it's a brand new database, I like to deploy using a restore.
If it's updates to a previously deployed database, then I like scripts because you...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 15, 2022 at 6:59 pm
The best way is to not read the same area of the table that he's writing to. It's also important that his "loading" should be fast. Some will suggest the...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 15, 2022 at 6:39 pm
p.s. If the table isn't too wide, consider the use of a "System Versioned Temporal Table" which is all of that done auto-magically for you.
https://docs.microsoft.com/en-us/sql/relational-databases/tables/temporal-tables
--Jeff Moden
Change is inevitable... Change for the better is not.
August 15, 2022 at 6:33 pm
Viewing 15 posts - 2,971 through 2,985 (of 59,091 total)