How to Restore a Backup of Database in SSMS

Introduction

If you are new to SQL Server Management Studio (SSMS), you might be wondering how to restore database in SQL Server Management Studio from a backup. Whether your database was created on-premise, backed up from Azure SQL backup, or exported as a .bak file, this step-by-step guide will help you understand how to restore database in SSMS easily.

We will walk through restoring a SQL backup database from a .bak file, configuring restore options in SQL Server, and handling common tasks such as deleting users and fixing user mapping issues after restore.

Step-by-Step Guide to Restore DB Backup in SSMS

Step 1: Run the SSMS from the Start Menu

 1-run-the-sql-server-management-studio

Step 2: Restore the Database

  1. Connect to the Server
    2.1-connect-to-the-server
  2. Choose the Database
    2.2-choose-the-database
  3. Right-click on the Database Name “test” and click “Tasks”. Click “Restore”, then click ”Database”.
    2.3-right-click
  4. Choose “Device”, then click “…”
    2.4-choose-device
  5. Select the Backup Devices
    2.5-select-the-backup-devices
  6. Find the Backup Database from the Folder
    2.6-1-find-the-backup-database
    2.6-2-find-the-backup-database
  7. Restore the Database
    2.7-restore-the-database
  8. Choose “options” and Restore the Options. Overwrite the existing database (WITH REPLACE)
    2.8-choose-options
  9. Restored successfully
    2.9-restored-successfully
  10. Delete the Database Existing User
    2.10-delete-the-database-existing-user
  11. Delete the Object
    2.11-delete-the-object
  12. Connect to User mapping
    2.12-1-how-to-connect-to-user-mapping
    2.12-2-how-to-connect-to-user-mapping
    2.12-3-how-to-connect-to-user-mapping

Step 3: Done

Outline