The Database ID in sysdatabases and sys.databases for our database is 4.
The function DB_ID ( '<our database>' ) returns 5 for our database. Also any missing index data for our database in the table sys.dm_db_missing_index_details is assigned to database_id 5 also.
It seems to me that the sys.databases should have ID 5 and NOT 4. This is driving me bonkers and making it so sp_BlitzIndex does not work.
Does anyone know why my database id doesn't match between sys.databases, sys.dm_db_missing_index_details and DB_ID() on SQL Azure? Is it actually screwed up or does this just work different in SQL Azure?