Skip to main content

· 2 min read

Introduction

SQL Server is a relational database management system developed by Microsoft. It is a software product whose primary function is to store and retrieve data as requested by other software applications, be it those on the same computer or those running on another computer across a network (including the Internet).

Prerequisites

  • SQL Server (2016 or above) installed on the server.
  • OS: Windows Server 2016 or above.
  • SSMS (SQL Server Management Studio) installed on the server.

Steps

Backup

  1. Open SSMS and connect to the SQL Server instance.

    SSMS

  2. Right-click on the database you want to backup and select Tasks > Back Up...

    SSMS - Backup Task

  3. In the Back Up Database window, select the Backup type as Full, check the "Copy Only" and specify the Destination for the backup file.

    SSMS - Backup Dialog

    Note:

    'Copy Only' option is used to create a one-time backup of the database. It does not affect the overall backup and restore procedures.

  4. Click OK to start the backup process.

    SSMS - Backup Complete

Restore

  1. To restore the database, right-click on the Databases folder and select Restore Database...

    SSMS - Restore Task

  2. In the Restore Database window, select the Source as Device and click on the browse button to select the backup

    SSMS - Restore Dialog

  3. Click OK to start the restore process.

    SSMS - Restore Complete

Conclusion

In this tutorial, we learned how to backup and restore a SQL Server database. We hope you found this tutorial helpful. If you have any questions or comments, please feel free to reach out to us.