当前位置:网站首页>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
边栏推荐
猜你喜欢
Line test - graphic reasoning - 6 - similar graphic classes
Ligne - raisonnement graphique - 4 - classe de lettres
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
微生物健康网,如何恢复微生物群落
行测-图形推理-2-黑白格类
Are the microorganisms in the intestines the same as those on the skin?
LeetCode707. Design linked list
LeetCode206. Reverse linked list [double pointer and recursion]
面试百问:如何测试App性能?
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
随机推荐
One question per day - pat grade B 1002 questions
Handling file exceptions
Sword finger offer 27 Image of binary tree
Debezium series: binlogreader for source code reading
三菱PLC slmp(mc)协议
Guessing game (read data from file)
Byte hexadecimal binary understanding
关于海康ipc的几个参数
Unity dynamically merges mesh textures
What does the model number of asemi rectifier bridge kbpc1510 represent
微信论坛交流小程序系统毕业设计毕设(4)开题报告
Personal statement of testers from Shuangfei large factory: is education important for testers?
Software test classification
十四、数据库的导出和导入的两种方法
微生物健康网,如何恢复微生物群落
智慧社区和智慧城市之间有什么异同
kubernetes的简单化数据存储StorageClass(建立和删除以及初步使用)
不夸张地说,这是我见过最通俗易懂的,pytest入门基础教程
二叉树(Binary Tree)
Early childhood education industry of "screwing bar": trillion market, difficult to be a giant