Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

Panel
borderColor#03396c
titleColorWhite
titleBGColor#03396c
titleDescription of Issue

Restore a SQL Database from a backup

Panel
borderColor#03396c
titleColorWhite
titleBGColor#03396c
titleContext
  • SQL Server Management Studio

  • Restore Database

  • Database Backup

  • On-Prem

  • SaaS

  • Manual EERP Data Refresh

Panel
borderColor#03396c
titleColorWhite
titleBGColor#03396c
titleCause

Database needs to be restored from database backup

Panel
borderColor#03396c
titleColorWhite
titleBGColor#03396c
titleResolution

SaaS: Please contact TSM Support for assistance

On-Prem:

Back Up Database(s)

  1. Log into the source environment's database server

with tylerservice 
  1. with tylerservice or an administrative account

  2. Open Microsoft SQL Server Management Studio (SSMS)

 and
  1.  and connect to the server name for the instance where the source database resides

Expand 
  1. Expand Databases

  2. Right click

 the
  1.  the database name and

select 
  1. select Tasks > Back Up...

  2. Back up

to 
  1. to Disk

    1. If there is a location already populated, remove it and

click 
    1. click Add...

 to
    1.  to choose the desired file name and location

    2. Note: You need to add the .bak file extension to the end of the file name (Ex: D:\TylerTempBackups\munprod_01012023.bak)

  1. Click

the 
  1. the Media Options

 tab
  1.  tab

Select 
  1. Select Overwrite all existing backup sets

Click 
  1. Click OK

 when
  1.  when you are ready to start the backup and let the backup run until completion

  2. If the destination database is hosted on a different server, place a copy of the backup file on the destination database server

  3. Back up destination database (optional)

Restore Destination Database

  1. Connect to the SQL instance where the destination database resides

Expand 
  1. Expand Databases

  2. Right click

 the
  1.  the destination database and select

> 
  1. Tasks > Restore > Database...

  2. Click

the Options 
  1. the Options tab

Under 
    1. Under Restore Options, check

off 
    1. off Overwrite the existing database (WITH REPLACE)

    2. Under Server connections,

 check
    1.  check off Close existing connections to destination database

      1. Note: If you select your source before going to the Options tab, Close existing connections to the destination database

 may
      1.  may not be available to select.

  1. Click the

 General 
  1.  General tab

    1. Under Source, select Database or Device radio option

      1. Device (with the backup path populated) will be the typical selection

    2. Database - Select the database to restore from the drop-down list. The list contains only databases that have been backed up according to the MSDB backup history.

    3. Device - Select a specific backup file to backup from. This is the typical selection.

      1. Click the ellipses

      2. Click Add

      3. Locate backup file and click OK

      4. Click OK

Under 
    1. Under Destination, 

select
    1. select the

database
    1. database to be restored

  1. Click

the Files 
  1. the Files tab

    1. Expand

the 
    1. the Restore As

 column
    1.  column and verify that this row matches the location of your target MDF and LDF

Click OK 
    1. Click OK when you are ready to start the restore. Let run until completed. 

  1. If the source environment is different than destination environment, 

  2. Once the restore completes,

 right click 
  1.  right click destination database name and

select 
  1. select New Query

    1. Run the query below to change the database owner. Update database name and owner as needed.

      1. USE muntest
        EXEC sp_changedbowner 'muntest'

  2. Right click the newly restored database and click Properties

    1. Click

the Files 
    1. the Files tab

Verify 
    1. Verify Owner

 is
    1.  is set correctly (Ex: cashtest)

Under 
    1. Under Database files, 

update 
    1. update Logical Name if needed (Ex: muntest

 and
    1.  and muntest_log)

Click 
    1. Click OK

  1. Redeploy product environment from Tyler Deploy with Force Redeploy checked off

Panel
borderColor#03396c
titleColorWhite
titleBGColor#03396c
titleAdditional Information

...