From the course: Database Foundations: Administration
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Restore a SQL Server database
From the course: Database Foundations: Administration
Restore a SQL Server database
- Restoring a database on SQL server requires a similar procedure as making the initial backup. You use an SQL command to read the backup file and recreate the database. One of the major differences between SQL server and PostgreSQL in this area is that PostgreSQL needs an empty database to restore into whereas SQL server creates the database as part of the restoration process. Now, instead of creating yet another Docker container, I'm just going to demonstrate with the SQL server instance that we already have. In the previous movie, I created a backup for the Two Trees database. Let's delete it from the server and then restore it from the backup. Now, I wouldn't say that deleting a mission critical database is a common operation but let's suppose that we have a disgruntled employee on our hands and they decided to wreck havoc on the company, they right click on the server and choose new query, then they issue the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
(Locked)
Backup plans4m 29s
-
(Locked)
Create a PostgreSQL backup3m 31s
-
Use pg_dump in the Postgres container6m 12s
-
(Locked)
Restore a Postgres database10m 13s
-
(Locked)
Create a full SQL Server backup6m 42s
-
(Locked)
Restore a SQL Server database3m 42s
-
(Locked)
Incremental and differential backups4m 30s
-
(Locked)
Point-in-time restores4m 20s
-
(Locked)
-
-
-
-
-