/
Non-Production Database Stuck in a Restoring State
Non-Production Database Stuck in a Restoring State
Description of Issue
Non-Production database has been stuck in a restoring state since trying to run a refresh
Context
- Munis
- EERP
- Refresh
- Database
- Restoring
Cause
Refresh of the Non-Production database from Production failed or the command window was closed before the refresh completed
Resolution
Perform the following for the database stuck in a restoring state.
- Open SQL Server Management Studio and connect to applicable instance
- Make note of the database name
- Make note of database owner
- Typically formatted as muntest
- This can be obtained from Tyler Deploy under Site Report
- If available, you can also right click an alternative non-prod environment and select Properties to see what its database owner is
- Right click the restoring database and select Delete
- A database deletion window will pop up. Select the two checkboxes at the bottom of the general tab:
- Close existing connections
- Delete backup and restore history for database
- A database deletion window will pop up. Select the two checkboxes at the bottom of the general tab:
- Click OK
- Once complete, on the SQL server, navigate to the MSSQL\DATA folder
- Ex: <DRV>:\mssqldata\MSSQL15.MSSQLSERVER\MSSQL\DATA
- Or <DRV>:\mssqldata\MSSQL15.TYLERCI\MSSQL\DATA
- Delete any remaining database files for that environment
- Ex. muntest.mdf and muntest_log.ldf
- Recreate the database
- Right click on Databases and select New Database
- Enter Database Name and Owner (example: Database name: muntest; Owner: muntest)
- Run refresh script for the environment
Additional Information
Related content
Database Stuck In Restoring Status
Database Stuck In Restoring Status
More like this
Database stuck in Single User Mode after Non-Production Refresh
Database stuck in Single User Mode after Non-Production Refresh
More like this
MunisAlter Has Stopped Working During Database Refresh
MunisAlter Has Stopped Working During Database Refresh
More like this
SQL Error - Restore of Database Failed MDF Cannot Be Overwritten
SQL Error - Restore of Database Failed MDF Cannot Be Overwritten
More like this
Manual Refresh of Munis database through SSMS
Manual Refresh of Munis database through SSMS
More like this
Access Denied error in Munis Non-Production after Database Refresh
Access Denied error in Munis Non-Production after Database Refresh
More like this