当前位置:网站首页>Using SQL server agent job to restore the database regularly
Using SQL server agent job to restore the database regularly
2022-07-28 17:21:00 【mojocube】
Right click operation , New job , Pictured :

To step , New steps :


Input script ( The path name should be modified according to the actual situation ):
USE MASTER
RESTORE DATABASE [CMS]
FROM DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Backup\CMS.bak'
WITH REPLACE,
MOVE 'McCMS_V5' TO 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\CMS.mdf',
MOVE 'McCMS_V5_log' TO 'C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA\CMS.ldf'
GO
Set the time of scheduled restore :

such , The whole scheduled task is set .
边栏推荐
- Round 1C 2022 - Code jam 2022 b.square (Mathematics, thinking)
- Unity shader realizes mirror effect with rendered texture
- Some attention code explanations
- 2022牛客多校第二场CDE
- Games101 section 13 ray tracing notes
- Iris framework practice of goweb development: project summary and review
- Ugui learning notes (II) Scrollview related
- HTAP comes at a price
- GEAR: Graph-based Evidence Aggregating and Reasoning for Fact Verification
- Shopee code League 2022 - qualification round p3.connecting the numbers (segment tree / bipartite graph determination, to be discussed)
猜你喜欢

The practice of beego framework developed by goweb: Section 4 database configuration and connection

在android开发过程中遇到.sqlite文件处理

MySQL详细学习教程(建议收藏)

异步电路设计--同步脉冲器原理及例题

Proof of the third scene (f) in 22 years

Unity shader cartoon style rendering

高速电路中电感的选型和应用

Easypoi multi sheet export by template

Unity shader uses rendered texture to achieve glass effect

valarray数值库学习
随机推荐
The longest substring of sword finger offer without repeated characters
火了 2 年的服务网格究竟给微服务带来了什么?(转载)
Reasoning Over Semantic-Level Graph for Fact Checking
Shopee code League 2022 - qualification round p3.connecting the numbers (segment tree / bipartite graph determination, to be discussed)
CNSA与CASC和CASIC的区别
Verilog 每日一题(VL14 自动贩售机1--FSM常见题型)
Ugui learning notes (IV) ugui event system overview and Usage Summary
Verilog 每日一题 (VL27 可置位计数器)
Unity shader procedural texture
Huawei mate 40 series exposure: large curvature hyperboloid screen, 5nm kylin 1020 processor! There will also be a version of Tianji 1000+
Pytorch Foundation: similarities and differences between torch.mul, torch.mm and torch.matmul
Facet experience -- the development side of dragon game client
总数据量超万亿行,玉溪卷烟厂通过正确选择时序数据库轻松应对
C # traversal set
C#遍历集合
Some notes on how unity objects move
格雷码和二进制的转换及典型例题(4bits格雷码计数器)
Visual Studio 2012/2015发布Web应用连同.cs源码一起发布
The practice of beego framework developed by goweb: Section 4 database configuration and connection
Message Passing for Complex Question Answering over Knowledge Graphs