当前位置:网站首页>Sqlserver backup restore
Sqlserver backup restore
2022-07-24 03:45:00 【Ma Lu'an】
———————————————————————- Backup ——————————————————————–
1. Open database , Successfully connected
2. Find the database to back up , The figure shows the backup database test

3. Right click the database name , Enter the attribute list , Selection task (task), Then select backup (back up..), Enter the backup window

4. The specific operation is shown in the following figure , The suffix of the backup file should be .bak

5. Backup success

———————————————————————- Code backup ——————————————————————–
Backup the database SQL The order is BACKUP DATABASE, The syntax is as follows :
BACKUP DATABASE < Database name >
TO `< Backup device >`
[WITH {NOINIT|INIT}
{NAME=' Backup name ',
DESCRIPTION =' Description text '}]
Command specification :
< Database name > Indicates the name of the database to be backed up ;
< Backup device > Specify the backup device for the backup operation ;
NOINIT Indicates that this backup set will be appended to an existing backup set , This is the default set ;INIT Means to overwrite all backup sets ;
The backup name indicates the name of this backup ;
DESCRIPTION Text indicating the description of this backup set , Format is unlimited ;
Example 1: Create database test Backup set of test_T, The backup device is created for srs
backup database test
to srs
with init,
name = 'test_T',
description=' database test Backup of '
Be careful : First create a backup device ( Such as srs,test), Otherwise, an error will be reported that the backup device does not exist ;

———————————————————————- Restore ——————————————————————–
1. Select the total database under the connection engine , Right click properties

2. Property list , Select restore database
3. Operation as shown below

4. Restore successful

边栏推荐
- How emqx 5.0 under the new architecture of mria + rlog realizes 100million mqtt connections
- STL multimap
- Why do some people write code so complicated?
- [untitled]
- What is IMU?
- Web3 traffic aggregation platform starfish OS gives players a new paradigm experience of metauniverse
- [wepy2.0] installation
- 2022 China software products national tour exhibition is about to set sail
- Qt ROS相关操作(运行终端指令、发布订阅自定义消息话题或服务、订阅图像并显示)
- Sword finger offer | minimum number of rotation array
猜你喜欢

错误代码0x80004005

Two stroke engine mean value model simulation

uniapp H5打包后本地图片无法显示问题

Pit encountered in project upgrading

RTOS internal skill cultivation (10) | in depth analysis of RTOS kernel context switching mechanism

Matlab ode45 solving differential equations

Paper reading: the perfect match: 3D point cloud matching with smoothed densities

Leetcode-382. random nodes of linked list

Redis transaction learning

Appendtofile append failed
随机推荐
idea写web项目时报错Failed to load resource: the server responded with a status of 404 (Not Found)
DOM related method concepts
Jump statement in day011 loop structure
Bet on the whole scene, what is the odds of glory?
监听div的滚动事件 @scroll
PAT甲级 1040 Longest Symmetric String
MPLS VPN cross domain -optionb
RTOS内功修炼记(十) | 深度解析RTOS内核上下文切换机制
Expressions régulières \ \ B \ \ b compréhension de l'appariement des limites des mots
Two stroke engine mean value model simulation
21st day of written test mandatory training
STL multimap
Batch visual target detection callout box -- Yolo format dataset
4.合宙Air32F103_LCD
Interviewer: if the order is not paid within 30 minutes after it is generated, it will be automatically cancelled. How to realize it?
H7-tool serial port offline burning operation instructions, support TTL serial port, RS232 and RS485 (2022-06-30)
STL set容器
4. Hezhou air32f103_ LCD
Extend the connection boundary, expand the business scope, and comprehensively move towards the era of Intelligent Cloud network 2.0
Using global data to realize data sharing in wechat applet