Viewing 15 posts - 991 through 1,005 (of 59,063 total)
p.s. CTEs are inherently NOT reusable anywhere except the query that they live in. They can be referenced as many times as you need to with the understanding that they...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 24, 2023 at 1:04 am
Back to this older thread of "Can data save the world" and seeing what has been going on with the "climate change discussions" (and I hate to call it that)...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2023 at 8:42 pm
If you know the SPID for the query, you could also query the following DMV. Look for the word "memory" in the documentation.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2023 at 8:31 pm
So - going back to the OP's original post we see that a string that is greater than 8000 characters gets inserted with truncation and is successful for columns...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2023 at 8:29 pm
You CAN, however, create a simple "Pass through view" that will do the trick.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2023 at 1:54 pm
Are the rows all at the "end" of the Clustered Index or are they scattered throughout?
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2023 at 1:51 pm
Compress the data. Look at both page compression and COMPRESS/DECOMPRESS for large char columns.
As a bit of a sidebar, be aware that Page Compression causes index rebuilds to take...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2023 at 1:40 pm
I sure don't mean for it to be false praise, or even praise for nothing. I've just seen a few people get... for want of a term, upset when...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2023 at 4:28 am
replicate returns 8k
https://learn.microsoft.com/en-us/sql/t-sql/functions/replicate-transact-sql?view=sql-server-ver16
Lordy... I've been bitten by that before. In this case, it returns 8K because it wasn't predefined as a MAX datatype.
Let run the test a bit...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2023 at 4:18 am
I feel that your most needed confidence is that needed for you to ask questions when you are not sure about something.
One of my biggest regrets is in not...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 23, 2023 at 3:44 am
Just to be absolutely correct, you might want to add a PK on EmpID in the Employee table. 😀
Otherwise, awesome question!
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2023 at 7:16 pm
Actually, REORGANIZE does a whole lot...
It causes log file explosions.
It perpetuates fragmentation because it doesn't clear the pages above the Fill FACTOR.
It combines pages at the worst time possible, which...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2023 at 7:01 pm
I'm still waiting on the OP for the DDL and Data sources for the example table.
As a bit of a sidebar, I've not yet done a deep dive on this...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2023 at 6:34 pm
There's really no difference between CTEs and Views. The exception to that rule is that if you can force a "Blocking Operator" in the CTE, it can act more like...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2023 at 6:22 pm
This is nice but I agree with Mike01. Where do we get a copy of the DDL for the table AND the data? People can learn much more by actually...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 20, 2023 at 1:37 pm
Viewing 15 posts - 991 through 1,005 (of 59,063 total)