mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
7 lines
682 B
Transact-SQL
7 lines
682 B
Transact-SQL
-- Create a full backup of the database. Substitute the path 'C:\YourFolder' with the target location of the backup.
|
||
|
||
BACKUP DATABASE [WideWorldImporters]
|
||
TO DISK = N'C:\YourFolder\WideWorldImporters.bak'
|
||
WITH FORMAT, INIT, NAME = N'WideWorldImporters-Full Database Backup', SKIP, NOREWIND, NOUNLOAD, COMPRESSION, STATS = 10;
|
||
GO
|