October 12, 2023 at 12:22 pm
please confirm the following t-sql for correctness:
EXEC sp_MSforeachdb 'USE ? IF "?" NOT IN ("master", "model", "msdb", "tempdb")
DBCC UPDATEUSAGE(?) '
October 12, 2023 at 1:45 pm
this is the type of sql you should confirm yourself in a dev box - if it is wrong you will see the errors.
as for executing it blindly as you have above - as per the documentation https://learn.microsoft.com/en-us/sql/t-sql/database-console-commands/dbcc-updateusage-transact-sql?view=sql-server-ver16
We recommend the following:
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply