Viewing 15 posts - 1,741 through 1,755 (of 7,614 total)
Vastly better to instead create a clustered index before you load the temp table.
April 5, 2021 at 7:03 am
I still have to wonder on the appropriate use of NOLOCK. Even if the data does not change in a table, is NOLOCK that much better than a standard...
April 4, 2021 at 7:45 pm
Very similar, but using an OUTER APPLY because you said you used a LEFT JOIN. OUTER APPLY is like a "LEFT APPLY" and CROSS APPLY is like an "INNER APPLY".
Don't...
April 2, 2021 at 3:59 pm
Sorry, I just have to ask: why would logical file name(s_ need to be preserved? Are they hard-coded in some existing statements? That seems dangerous, what if files are added...
April 1, 2021 at 2:19 pm
I would have thought you could just rename the logical names to end up with the same name.
Either: rename the original logical file name before you add the new file...
April 1, 2021 at 1:33 pm
Hmm, maybe add another file to the filegroup in the new location.
Then remove the existing file from the filegroup; since the file's empty, you should be able to remove it.
March 31, 2021 at 8:01 pm
Columnstore has its own quirks. For example, every time you SELECT data from the table you'll read roughly 1M rows. If your processing (almost) always does that anyway, such as...
March 31, 2021 at 2:40 pm
I did give what I think is the reason for the recommendation: to be able to get back to the exact db image is something happens after removing TDE.
I get...
March 30, 2021 at 8:28 pm
columnstore is an alternative to rowstore with page compression.
Typically you get even better compression with columnstore.
As to which is best, that depends on the specific situation with that table.
I'd say...
March 30, 2021 at 8:26 pm
Do you really care that much? That is, isn't it easier just to take the log backup.
I think I know the reason: it would be the only way to get...
March 30, 2021 at 7:45 pm
ONLY if it's actually NEEDED, just because of the overhead to activate it.
I have (many) hundreds of dbs. I have RCSI on for about a dozen or so of them. ...
March 30, 2021 at 3:46 pm
When a page gets full, it is compressed(*), there does not have to be a rebuild first.
(*) SQL attempts to compress the page; if there's not enough gain from compression,...
March 30, 2021 at 2:34 am
In general, data compression is a huge performance gain. Partitioning is not a particular performance if the table has its best possible clustering index, i.e. you lookup by the clus...
March 30, 2021 at 2:32 am
This statement:
ALTER DATABASE [MYDB] SET ALLOW_SNAPSHOT_ISOLATION ON
causes the db to start snapshot processing -- adding 14 bytes to each row and storing any needed row versions in tempdb -- and...
March 29, 2021 at 10:21 pm
SELECT
issuedate, replydate,
CASE WHEN replydate IS NULL AND DATEDIFF(DAY, duedate, GETDATE()) > 0
THEN DATEDIFF(DAY,...
March 29, 2021 at 10:04 pm
Viewing 15 posts - 1,741 through 1,755 (of 7,614 total)