Restore a SQL Server Database from a .bak using SSMS (GUI)

Restore a SQL Server Database from a .bak using SSMS (GUI)

This guide shows how to restore a .bak file into SQL Server 2022 or SQL Server Express using SQL Server Management Studio (SSMS) only. No T-SQL required.


Prerequisites


• SSMS installed and you can connect as a login with restore rights.

• The .bak file is accessible from the SQL Server machine. If the .bak is on your workstation and the SQL Server is remote, copy the .bak to a folder on the server (for example C:\Backups). Make sure the SQL Server service account has read permission to that folder.

• Know whether you are restoring to a new database name or overwriting an existing one.


Part A: Restore to a new database


1) Open SSMS and connect to your SQL instance.

2) In Object Explorer, right-click Databases -> Restore Database...

3) Source: select Device, click the ... button, then Add, browse to the .bak file, click OK, then ensure the correct backup set is checked.

4) Destination: in Database, type the new database name you want (for example MyApp_Prod).

5) Click the Files page on the left.

6) If you want to control where the .mdf and .ldf will be placed, check Relocate all files to folder and set the Data and Log folders. Otherwise, review the Restore As paths to avoid file name conflicts.

7) Click the Options page on the left and make sure:

• Recovery state is RESTORE WITH RECOVERY (default) so the database comes online after restore.

• Leave Overwrite existing database unchecked since this is a new name.

• Optionally check Close existing connections only if the name already exists and has active connections.

8) Click OK to start the restore. Wait for the success message.

9) Expand Databases and verify your new database appears. Right-click it -> Properties -> Files to confirm the file locations.

10) If the app uses SQL logins, map or create any needed logins under Security -> Logins and ensure database users exist and have proper roles.


Part B: Overwrite an existing database


1) Make sure you are comfortable replacing the current data with the backup contents.

2) In SSMS, right-click the database you will overwrite -> Tasks -> Restore -> Database...

3) Source: select Device, click the ... button, Add the .bak, choose the backup set to restore.

4) Destination: confirm the Database name is the one you are overwriting.

5) Click the Options page:

• Check Overwrite the existing database (WITH REPLACE).

• Check Close existing connections to the destination database.

• Recovery state should be RESTORE WITH RECOVERY unless you plan to apply additional differential or log backups.

6) Click the Files page if you need to adjust file locations or names. Ensure the Restore As paths point to valid data and log folders and do not conflict with other databases.

7) Click OK to restore. After completion, refresh the database node and verify tables, views, and permissions.


Notes on common issues


• Access to the .bak: If you see an access denied or cannot find file error, confirm the .bak is on the server and that the SQL Server service account has read permission.

• File name conflicts: If you restore a backup from a database with different file names, use the Files page to edit the Restore As file names or check Relocate all files to folder.

• Multiple backup sets: If the .bak contains several backups, choose the latest full backup you intend to restore. If you also have differential or log backups, restore them in order and use WITH NORECOVERY until the last one.

• Collation or version differences: You can restore from older to newer SQL Server versions, not vice versa. Collation changes require additional steps after restore.

• Orphaned users: After restore, if a login exists on the instance but the mapped database user is orphaned, fix mapping by creating or mapping the login and updating the user mapping in SSMS (Database -> Security -> Users).


Default data folders (example)


• SQL Server Express 2022 default data path often looks like:

  C:\Program Files\Microsoft SQL Server\MSSQL16.SQLEXPRESS\MSSQL\DATA

• Your path may differ based on instance name and install location.


Quick checklist


• .bak copied to server and readable.

• Restore Database wizard launched from SSMS.

• Correct backup set selected.

• Destination name correct.

• Files page reviewed to avoid conflicts.

• Options page set to Recovery: WITH RECOVERY and Overwrite only when intended.

• Restore completed and database visible.

    • Related Articles

    • SQL Server Restore Troubleshooting (SSMS GUI)

      This guide lists common restore errors you may see when importing a .bak in SQL Server Management Studio and how to resolve them. Focus is on GUI-based fixes, with small T-SQL snippets where helpful. Quick checklist • Confirm the .bak is on the SQL ...
    • Fixed Database Roles Cheat-Sheet

      1. db_owner • Full control of the database (create/alter/drop objects, manage permissions, backup/restore, etc.). • Equivalent to being a “database admin.” • Use when: You want someone to manage everything in just one DB. ————— 2. db_datareader • Can ...
    • Create a New IIS Website on Windows Server 2025

      This guide covers recommended layout, IIS steps, and a PowerShell script to automate setup. Best practice folder layout • Create one folder per site outside wwwroot. • Example: – C:\inetpub\MyNewSite Step by step in IIS Manager GUI 1) Create the site ...
    • Create a Self-Signed Certificate for an IIS Website on Windows Server 2025

      This guide shows the GUI method in IIS Manager and the PowerShell method. It also covers binding the certificate to a site and optional export. GUI method in IIS Manager 1) Open IIS Manager (inetmgr). 2) In the Connections pane, click your server ...
    • Popular Articles

    • How to add your Microsoft 365 Email on an iPhone using the Outlook app

      How to Set Up Microsoft 365 Email on Your iPhone Using Outlook This guide will walk you through downloading the Outlook app and adding your Microsoft 365 email account on your iPhone. ————— Step 1: Download the Outlook App 1. Open the App Store on ...
    • Outlook Error "5objp" when setting up email on Outlook App

      Follow these steps if you are having trouble signing into Outlook with your Microsoft 365 account: ————— Step 1: Start with the onmicrosoft.com Address • First, try signing in using the @myorg.onmicrosoft.com format email address. – Example: ...
    • How to update your credit card on file

      Do you need to update your credit card on file within the Twilight I.T. Customer Portal? Here is what you need to do... Step 1: Log into the portal at https://portal.twilightit.com Step 2: Click on BILLING in the top menu. Step 3: Click on PAYMENT ...
    • How to view or download invoices on your account

      Here is the process of viewing and/or downloading invoices on your account with Twilight I.T. Step 1: Log into the client portal at https://portal.twilightit.com Step 2: Click on the BILLING menu Step 3: From here you can view all your invoices. If ...
    • How to add your Microsoft 365 Email on an Android phone using the Outlook app

      How to Set Up Microsoft 365 Email on Your Android Phone Using Outlook This guide will walk you through downloading the Outlook app and adding your Microsoft 365 email account on your Android device. ————— Step 1: Download the Outlook App 1. Open the ...