当前位置:网站首页>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 
边栏推荐
- 2021-01-11
- There is another problem just online... Warm
- Transparent i/o model from beginning to end
- kubernetes的简单化数据存储StorageClass(建立和删除以及初步使用)
- Line test - graphic reasoning - 6 - similar graphic classes
- Unity与WebGL的相爱相杀
- 今日创见|企业促进创新的5大关键要素
- What does the model number of asemi rectifier bridge kbpc1510 represent
- One question per day - pat grade B 1002 questions
- Cases of agile innovation and transformation of consumer goods enterprises
猜你喜欢

Microbial health network, how to restore microbial communities

Knowledge drop - PCB manufacturing process flow

Microbial Health Network, How to restore Microbial Communities

微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT

微生物健康網,如何恢複微生物群落

行測-圖形推理-4-字母類

Interview questions: how to test app performance?

I wish you all the best and the year of the tiger

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

Sword finger offer 27 Image of binary tree
随机推荐
Clean C disk
智慧社區和智慧城市之間有什麼异同
It's no exaggeration to say that this is the most user-friendly basic tutorial of pytest I've ever seen
行测-图形推理-1-汉字类
微信论坛交流小程序系统毕业设计毕设(5)任务书
行測-圖形推理-4-字母類
There is another problem just online... Warm
[untitled] reprint melting ice - track icedid server with a few simple steps
网络安全-对操作系统进行信息查询
What is ADC sampling rate (Hz) and how to calculate it
Exploratory data analysis of heartbeat signal
PMP项目管理考试过关口诀-1
网络安全-永恒之蓝
微信论坛交流小程序系统毕业设计毕设(1)开发概要
ArcGIS:矢量要素相同字段属性融合的两种方法
Line test - graphic reasoning - 6 - similar graphic classes
软件测评中心▏自动化测试有哪些基本流程和注意事项?
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to jsp-2
Brush question 3
不夸张地说,这是我见过最通俗易懂的,pytest入门基础教程