
Select Device:, and then select the ellipses (.) to locate your backup file. Right-click the Databases node in Object Explorer and select Restore Database. To restore your database, follow these steps: To read more about the different backup options, see BACKUP (Transact-SQL). NAME = N'SQLTestDB-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10 TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\Backup\SQLTestDB.bak' The path may be different on your computer: USE Select OK to take a backup of your database.Īlternatively, you can run the following Transact-SQL command to back up your database.You can use the ellipses to navigate to a specific file. If you need to change the path, select Remove to remove the existing path, and then Add to type in a new path. Under Destination, confirm that the path for your backup is correct.Right-click the database, hover over Tasks, and select Back up.Expand the Databases node in Object Explorer.Launch SQL Server Management Studio (SSMS) and connect to your SQL Server instance.To take a backup of your database, follow these steps: Refresh the Databases node in Object Explorer to see your new database. INSERT INTO SQLTest (ID, c1) VALUES (5, 'test5') INSERT INTO SQLTest (ID, c1) VALUES (4, 'test4') INSERT INTO SQLTest (ID, c1) VALUES (3, 'test3')


INSERT INTO SQLTest (ID, c1) VALUES (2, 'test2') INSERT INTO SQLTest (ID, c1) VALUES (1, 'test1') Run the following Transact-SQL (T-SQL) code to create your test database. Launch SQL Server Management Studio (SSMS) and connect to your SQL Server instance. To complete this quickstart, you'll need:

#Backup a databse using sql studio 017 full
In this quickstart, you'll create a new database, take a full backup of it, and then restore it.įor a more detailed how-to, see Create a full database backup and Restore a backup using SSMS. Applies to: SQL Server (all supported versions)
