Viewing 15 posts - 1,366 through 1,380 (of 7,608 total)
Are you on Standard or Enterprise Edition?
If on Enterprise Edition, you can use data compression to reduce the size of the data stored. Row compression is very little overhead but...
August 2, 2021 at 3:17 pm
Yes, you should be able to apply NOT to the conditions to get the opposite of the current conditions.
August 2, 2021 at 2:51 pm
You likely shrunk the log file, but the db needs that log space so it is reallocating it. Unfortunately, newly allocated log space requires pre-formatting. That pre-formatting pauses all activity...
August 2, 2021 at 3:33 am
No. There is no way to automatically have compression apply to all tables or indexes in a db. You must specify compression as part of the table/index create.
August 1, 2021 at 10:41 am
We have a monitoring tool that reads Windows Event Log entries for Failure and Success of SQL Job executions.
Hmm, maybe?!:
When that tool reads a "job success" as the last msg...
July 30, 2021 at 6:36 pm
Therefore, the clus index on the dbo.order_items should be ( order_id, $IDENTITY ) and not just ( $IDENTITY ). Since the parent key is sequential,...
July 30, 2021 at 5:12 pm
I think the current query can be tuned up and that it should definitely help performance. Will it help it enough to meet your needs? You'll just have to test...
July 29, 2021 at 6:52 pm
Therefore, the clus index on the dbo.order_items should be ( order_id, $IDENTITY ) and not just ( $IDENTITY ). Since the parent key is sequential, this key...
July 29, 2021 at 6:45 am
If you have very volatile tables like that, you should put them in a separate filegroup and then shrink only the files associated with that filegroup.
You especially do not want...
July 28, 2021 at 10:57 pm
You should still never shrink a database (at the db level), only specific db files (at the file/file_id level).
July 28, 2021 at 8:43 pm
One must also consider the enormous difficulty of what the MS folks are trying to do.
I get asked all the time about "(simple) rules for tuning indexes" since that is...
July 28, 2021 at 5:54 pm
Or this instead?:
;WITH src
AS (SELECT s.PK
,MAX(CASE WHEN s.ColName = 'Col1' THEN s.Value END) AS Col1Value
...
July 28, 2021 at 5:21 pm
I AM NOT A SQL LICENSING EXPERT.
But as I understand the licensing, if you do ANY production work AT ALL on the instance, then you cannot use Developer Edition for...
July 27, 2021 at 10:25 pm
I'd use REVERSE because it's considerably less overhead.
SELECT BANAME, RIGHT(BANAME, CHARINDEX(' ', REVERSE(BANAME)) - 1) AS BANAME_VALUE
FROM #sample July 27, 2021 at 2:56 pm
Personally I think I'd rather see the days as columns in the same row, i.e. a column for Monday, a column for Tuesday, etc.., with one per month and one...
July 26, 2021 at 7:52 pm
Viewing 15 posts - 1,366 through 1,380 (of 7,608 total)