Viewing 15 posts - 2,926 through 2,940 (of 59,067 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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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)...
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...
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...
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
August 15, 2022 at 6:33 pm
Viewing 15 posts - 2,926 through 2,940 (of 59,067 total)