sql-server-maintenance-solution
sql-server-maintenance-solution copied to clipboard
IndexOptimize failing on Azure SQL Managed Instance when user tables exist in master
When running IndexOptimize against master on a Azure SQL Managed Instance, and if there are any user tables present in master, it fails with the following error:
Msg 50000, Level 16, State 1, Procedure dbo.IndexOptimize, Line 1912 [Batch Start Line 0] Msg 2573, Could not find table or object ID 1655676946. Check system catalog.
The object ID corresponds to the user table, which does exist when you check against sys.tables.