当前位置:网站首页>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 .
边栏推荐
- Differences between CNSA and CASC and CASIC
- The 2021 ICPC ASIA Taipei Regional programming contest L. leadfoot (combinatorics /2-adic assignment function +kummer theorem)
- The actual combat of the beego framework of goweb development: Section III program execution process analysis
- HTAP comes at a price
- Unity shader realizes water wave effect with noise texture
- MySQL详细学习教程(建议收藏)
- Using MVC in the UI of unity
- 高速电路中电感的选型和应用
- Andthen of function interface
- Introduction to vscade interface
猜你喜欢

Verilog 每日一题(VL6 数据串转并电路)

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

Goweb开发之Beego框架实战:第二节 项目初始化配置

Unity shader cartoon style rendering

UNIQUE VISION Programming Contest 2022(AtCoder Beginner Contest 248)G. GCD cost on the tree

Analysis of browser decoding process

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

Easypoi --- excel file export

Games101 assignment04 job 04

The practice of beego framework developed by goweb: Section 4 database configuration and connection
随机推荐
堡垒机的作用
Pytorch Foundation: similarities and differences between torch.mul, torch.mm and torch.matmul
Verilog 每日一题 (VL27 可置位计数器)
Facet experience -- the development side of dragon game client
Problem solution of code heartstrings Junior Group (official competition) of Dalian University of Technology (Development Zone campus) in 2021
Andthen of function interface
PostgreSQL weekly news - July 20, 2022
Modeling Semantics with Gated Graph Neural Networks for KBQA
Soft exam review summary
异步电路设计--同步脉冲器原理及例题
Round 1C 2022 - Code jam 2022 b.square (Mathematics, thinking)
Unity3d simple implementation of water surface shader
Rsync service deployment and parameter details
22年多校第三场(F的证明
全链路灰度在数据库上我们是怎么做的?
Comprehensively design an oppe homepage -- after sales service of the page
线性代数及矩阵论(十)
C# 导入Excel文件数据的几种方法
How to use fail2ban to protect WordPress login page
Realize the reset function of steering wheel UI with touch rotation and finger departure in unity