当前位置:网站首页>14、 Two methods of database export and import
14、 Two methods of database export and import
2022-07-07 23:10:00 【Beyond proverb】
One 、 With SQL Script format export ( recommend )
export
Right click the database to export , Mission —> Generation script 
next step 
Select the database to export , next step 
The content shall be modified as required , There is no need to go directly to the next step 
Check surface 
Check the table in the database to be exported 
Select the path and name of the script to save 
complete 
close 
Open the location where the script is located 

Import
The first line of the script USE [fiber_yy]
So we need to manually create a file named fiber_yy The database of 
Click on New query choice fiber_yy database 
Copy all the script contents 
After clicking on perform 
You can see fiber_yy There are all the tables in the database
Two 、 With mdb File format export
export


C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA
Copy these two files
For example, I copied to G Inside the plate 
Import

Find the location of the database 


The permissions of these two files need to be modified
Right click .mdf file attribute 
If the report is wrong , You need to assign permissions to the parent folder
How to put it? , It is recommended to store it in C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA Under the path
Because this is Microsoft SQL Server Where the database is stored , Therefore, it has authority , There is no need to modify anything 
Just i You can import the database 
边栏推荐
- 网络安全-sqlmap与DVWA爆破
- Online interview, how to better express yourself? In this way, the passing rate will be increased by 50%~
- ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
- Years of summary, some core suggestions for learning programming
- Microbial Health Network, How to restore Microbial Communities
- PCL .vtk文件与.pcd的相互转换
- 数据库每日一题---第22天:最后一次登录
- Sword finger offer 63 Maximum profit of stock
- This time, let's clear up: synchronous, asynchronous, blocking, non blocking
- About idea cannot find or load the main class
猜你喜欢

Understand the session, cookie and token at one time, and the interview questions are all finalized

微信论坛交流小程序系统毕业设计毕设(1)开发概要

Two minutes, talk about some wrong understandings of MySQL index

iNFTnews | NFT技术的广泛应用及其存在的问题

Personal statement of testers from Shuangfei large factory: is education important for testers?

数字藏品加速出圈,MarsNFT助力多元化文旅经济!

Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020

V20变频器手自动切换(就地远程切换)的具体方法示例

Software test classification

行测-图形推理-2-黑白格类
随机推荐
Some parameters of Haikang IPC
Brush question 4
Leetcode19. Delete the penultimate node of the linked list [double pointer]
Talk about DART's null safety feature
微信论坛交流小程序系统毕业设计毕设(5)任务书
This time, let's clear up: synchronous, asynchronous, blocking, non blocking
Software test classification
ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
PMP项目管理考试过关口诀-1
行测-图形推理-4-字母类
Debezium series: support the use of variables in the Kill Command
Class implementation of linear stack and linear queue (another binary tree pointer version)
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to JSP-1
Line test graph reasoning graph group class
Line test - graphic reasoning - 2 - black and white lattice class
网络安全-联合查询注入
What does the model number of asemi rectifier bridge kbpc1510 represent
OC variable parameter transfer
三菱PLC slmp(mc)协议
聊聊 Dart 的空安全 (null safety) 特性