SQL Server › Backup & Recovery
How do you restore a SQL Server database from a full backup file?
BeginnerAnswer
You use the RESTORE DATABASE statement, specifying the database name and the location of the backup file, and SQL Server will recreate the database exactly as it existed at the moment that full backup was taken, which is the starting point for any more complex restore involving additional differential or log backups.
RESTORE DATABASE MyDatabase
FROM DISK = 'C:\Backups\MyDatabase_Full.bak'
WITH RECOVERY;Real-world example An administrator restores a company's customer database from last night's full backup after an accidental deletion, quickly bringing the important customer data back online for the team.