Hi There! Today's post is about fixing databases that are in a restoring state. Scenario A I have added a couple of databases to an availability group on my primary server. When I go to the replica server, the databases show that they are in a restoring state. Here's how to fix this issue: I. On the secondary server in SSMS, expand 'AlwaysOn High Availability' > 'Availability Groups' > ServerName (secondary) > 'Availability Databases' > right click your database name > 'Join to Availability Group...' >hit OK . II. When I hit OK above, I received a new error; SQL error 1408. The error reads: The remote copy of the database is not recovered far enough to enable database mirroring or to join it to the availability group. You need to apply missing log records to the remote database by restoring the current log backups from the principal/primary database. Now I have to go back to the primary server and ta...