Viewing 15 posts - 1,366 through 1,380 (of 7,614 total)
Add code to the start of the proc to log to table. While you're at it, you might as well log all the parameter values as well, if...
August 3, 2021 at 8:00 pm
You could automate the change easily enough (including grabbing the parameters), but I understand the reluctance to change all the procs. You would likely want to capture the previous modify_dates...
August 3, 2021 at 7:15 pm
Add code to the start of the proc to log to table. While you're at it, you might as well log all the parameter values as well, if you have...
August 3, 2021 at 6:56 pm
Yeah, EXCEPT should to that just fine:
SELECT * /*...list_of_cols...*/
FROM dbo.today
EXCEPT
SELECT * /*...list_of_cols...*/
FROM dbo.yesterday
August 3, 2021 at 6:55 pm
Use NOT EXISTS when possible, as it allows for better execution plans.
August 2, 2021 at 5:09 pm
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
Viewing 15 posts - 1,366 through 1,380 (of 7,614 total)