当前位置:网站首页>SQL Server Backup and restore command operations
SQL Server Backup and restore command operations
2022-06-29 18:59:00 【Chshyz】
SQL Server Management Studio Backup and restore database operations
Environmental Science :windows10、 Already deployed sql server 2008 R2、 Can successfully connect to the database ;

for example : Backup class1 database
BACKUP DATABASE [class1] TO DISK = N'D:\program files\sql server\MSSQLSERVER\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\class1.bak' WITH NOFORMAT, NOINIT, NAME = N'class1- complete database Backup ', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO

Backup log
BACKUP LOG [class1] TO DISK = N'D:\program files\sql server\MSSQLSERVER\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\class2.bak' WITH NOFORMAT, NOINIT, NAME = N'class1- Transaction log Backup ', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO

Restore
RESTORE DATABASE [class1] FROM DISK = N'D:\program files\sql server\MSSQLSERVER\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\class2.bak' WITH FILE = 1, NOUNLOAD, STATS = 10
GO

边栏推荐
猜你喜欢

2. 在STM32CubeMX建立的Keil5工程中添加自定义的相关文件

暴力解决《猜名次》问题

Shandong University project training (VII) add navigation bar to select city

How to use the low code platform of the Internet of things for service management?

从CIO到顾问:IT领导者的转型之路

关于微服务

元素等待机制
![[Nanjing University] information sharing of the first and second postgraduate entrance examinations](/img/0d/a6392e6b92bb689e90c038ffac9dd8.jpg)
[Nanjing University] information sharing of the first and second postgraduate entrance examinations

C Primer Plus Chapter 12_ Storage categories, links, and memory management_ Codes and exercises

76.二叉树的最近公共祖先
随机推荐
Cannot retrieve repository metadata 处理记录
美法官裁定,被控掩盖黑客行为的Uber前安全主管必须面对欺诈指控
Apache InLong百万亿级数据流处理
第三方工具與框架集成
程序员值得收藏的几款代码截图美化工具播
细说GaussDB(DWS)复杂多样的资源负载管理手段
PostGIS generate graphic cut
MySQL 企業級開發規範
Stepping on the pit: json Parse and json stringify
优雅书写Controller(参数验证+统一异常处理)
74.股票的最大利润
SD6.24集训总结
SD6.25集训总结
Page Object与数据驱动测试
暴力解决《猜名次》问题
Chapter 02_ MySQL data directory
Up to 81.98%! Announcement of undergraduate study rate of more than 100 "double first-class" Universities
76. nearest common ancestor of binary tree
Panda Parkour JS games code
SD6.23集训总结