Viewing 15 posts - 661 through 675 (of 7,608 total)
You state, "A monster index will have to be rebuilt where it may not have been fragmented at all without compression." What is the basis for that claim?
Same...
August 29, 2022 at 6:44 pm
(1) What is the 'cost threshold for parallelism' on that instance? If it's too low, SQL could be trying use parallelism far too often.
(2) Check the SQL log for error-type...
August 29, 2022 at 2:49 pm
Restore the qa to prod under a different db name.
Once you verify that the restored db is what you want, then:
DROP the original db;
RENAME the restored db to be the...
August 29, 2022 at 2:44 pm
I'd jury-rig this one: replace the 3 chars with a single char, then use the "standard" splitter:
;WITH test_data AS (
SELECT ' a=abc;&;b=1;&;c=ddd' AS...
August 29, 2022 at 2:43 pm
It was not "obvious" that you were speaking of VARCHAR because they are NOT affected by row compression at all. Only CHAR is affected by row compression and you...
August 29, 2022 at 2:19 pm
When you read this, Scott, remember that I LOVE page compression...
You say the following but you need to qualify, especially to a person who might not know what compression...
August 29, 2022 at 2:05 am
It doesn't take much to cause a page split with compression enable on tables that aren't suffering from page splits to being with. If you're going to use compression...
August 28, 2022 at 10:47 am
It depends. Unfortunately SQL can only trap certain errors; for some errors, even a CATCH won't "catch" an error.
For example, if you use and invalid column name -- one that...
August 26, 2022 at 9:43 pm
Just as a bit of a sidebar, remember that page compression causes CI rebuilds to take about 3 times longer. I'm NOT saying that makes it not worth it...
August 26, 2022 at 7:39 pm
Are you page-compressing that table? If not, why not?? Especially since it is read-only almost all the time.
August 26, 2022 at 6:42 pm
Actually, if you have LOB off-page data, that data will not be moved simply by CREATEing the clustered index on another filegroup.
August 26, 2022 at 6:25 pm
Does that take care of the whole "season" of dates the OP identified
I need to create a query where the first of March will be Week 1...
August 26, 2022 at 3:27 pm
No need to overly complicate this. Just calc the starting Monday date, then determine week# displaced off that "base" date.
I moved the time adjustment into a CROSS APPLY only so...
August 25, 2022 at 6:14 pm
Either method will work.
Personally I prefer using the TimeTaken column. Triggers with transactions can be used to ensure that the times are kept in sync. Of course you'd want a...
August 23, 2022 at 1:50 pm
No. For an explicit transaction, you need an explicit COMMIT or ROLLBACK.
August 18, 2022 at 7:08 pm
Viewing 15 posts - 661 through 675 (of 7,608 total)