当前位置:网站首页>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 .
边栏推荐
- Goweb开发之Beego框架实战:第三节 程序执行流程分析
- Unity shader uses rendered texture to achieve glass effect
- Code implementation additive attention
- Codeworks round 801 (Div. 2) and epic Institute of technology round D. tree queries (tree DP)
- Ugui learning notes (VI) get the information of the clicked UI
- Unity shader cartoon style rendering
- Shopee code League 2022 - qualification round p3.connecting the numbers (segment tree / bipartite graph determination, to be discussed)
- The actual combat of the beego framework of goweb development: Section III program execution process analysis
- 零基础利用Unity3D开发AR应用并远程下载3D模型
- Goweb开发之Beego框架实战:第三节 程序执行流程分析
猜你喜欢

Unity shader global fog effect

Comprehensively design an oppe homepage -- page service part

Verilog 每日一题 (VL24 多bit MUX同步器 跨时域输出)

如何在构建阶段保护镜像安全

我为什么选择使用Go语言?

Visual Studio 2012/2015发布Web应用连同.cs源码一起发布

Verilog 每日一题 (VL28 加减计数器)

influxdb2的使用

Unity shader cartoon style rendering

Educational codeforces round 126 (rated for Div. 2) f.teleporters (two sets and two points)
随机推荐
Round 1C 2022 - Code jam 2022 b.square (Mathematics, thinking)
Unity shader texture animation
System clock failure of database fault tolerance
2022牛客多校第二场CDE
The maximum recommended number of rows for MySQL is 2000W. Is it reliable?
22年多校第三场(F的证明
Ugui learning notes (II) Scrollview related
valarray数值库学习
How to protect image security during construction
Function接口之andThen
Atcoder regular contest 133 d.range XOR (digital dp+ classification discussion)
堡垒机的作用
Pytorch Foundation: similarities and differences between torch.mul, torch.mm and torch.matmul
Record the processing process of CEPH two RBDS that cannot be deleted
Iris framework practice of goweb development: project summary and review
Make full use of English
Why do I choose to use go language?
Rsync service deployment and parameter details
Android Development - set cache
Analysis of browser decoding process