Viewing 15 posts - 826 through 840 (of 7,597 total)
Just remember that you'll end up with a rather huge transaction log file on Step 3 and it will take 2-3 times longer if you don't achieve "Minimal Logging".
Also...
June 8, 2022 at 4:49 pm
so maybe I need to rethink how I have structured my tables. I don't have a binary win_loss in the game data which you will see. I put...
June 8, 2022 at 4:48 pm
This might give you some helpful ideas. It also contains minimum sample data to show you how data can be posted. I used a Season table to determine the Season...
June 8, 2022 at 3:23 pm
If you're willing to get rid of the PIVOT in favor of a cross-tab approach (which IMHO is preferable anyway), then try this:
SELECT
[Type],...
June 7, 2022 at 5:54 pm
Getting carried away with the semicolons, and attempting to use two WITHs for one SELECT:
:WITH cte AS (
SELECT [cntSRVLDAPLOADAVERAGE]
FROM...
June 6, 2022 at 9:31 pm
Apologies on the mistake about COMPRESS.
I know you think that 2016 is magic after the first insert. The documentation says that new pages will be minimally logged. ...
June 6, 2022 at 2:13 pm
Apologies on the mistake about COMPRESS.
I know you think that 2016 is magic after the first insert. The documentation says that new pages will be minimally logged. I'll...
June 6, 2022 at 2:02 pm
Apologies on the mistake about COMPRESS.
I know you think that 2016 is magic after the first insert. The documentation says that new pages will be minimally logged. I'll have...
June 6, 2022 at 1:57 pm
Using a loop to break things up into sections will cause the every section except the first to be FULLY LOGGED, which takes as much as 3 times longer...
June 5, 2022 at 7:13 pm
Ooh, I accidentally left off one critical pre-step:
(0) Pre-allocate enough log space to handle the INSERTs. How much total log space you'll need depends on whether minimal logging is available...
June 5, 2022 at 6:49 pm
If none of your tables have indexes, you should start there, and fast!
First, review the missing index stats to see which column(s) should be used in the clustered index. That...
June 4, 2022 at 7:11 am
You could also consider using a brand new filegroup, with at least two files, for the new/replacement table, which will reduce any interference with other filegroups. Then again, you're stuck...
June 3, 2022 at 9:03 pm
Not that I know of.
You could increase the log size to match the size it was originally if you wanted to. That may take some time as log space must...
June 3, 2022 at 6:00 pm
I'll assume that when you refer to "primary index" on the original table you mean "clustering index". That is critical for copying the data (whereas a (nonclustered) primary key is...
June 3, 2022 at 5:56 pm
Viewing 15 posts - 826 through 840 (of 7,597 total)