I've got a looooooong running Orion instance that I've taken over, it started life back in the NPM 8.x era, possibly earlier and has been through many upgrades over the years. Currently at NPM 12.3. I've been reviewing all the SQL databases under my purview and noticed Orion's was lacking some basic maint routines, specifically no SQL level backups or checkdbs. Of course, first checkdb I do, I find issues, and of course it's present in every backup I've got so I suspect it predates me.
In any case, I need to fix it. The trouble is in SolarwindsOrion.dbo.AlertDefinitions and SolarwindsOrion.dbo.MapStudioFiles. Based on my read of the errors, and a review of the two tables my current action plan is to:
- Stop all Orion services
- Back up the database in SQL
- Script as a drop and create the two impacted tables
- Drop, and re-add the tables via the scripts
- checkdb
- Restart Orion, review alert counts in admin, and poke at our maps looking for errors
I don't see any triggers on the two tables that would imply I can't do this, but I'm curious what others have encountered.