当前位置:网站首页>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
边栏推荐
猜你喜欢
Knowledge drop - PCB manufacturing process flow
Unity and webgl love each other
Online interview, how to better express yourself? In this way, the passing rate will be increased by 50%~
[record of question brushing] 3 Longest substring without duplicate characters
行测-图形推理-2-黑白格类
Personal statement of testers from Shuangfei large factory: is education important for testers?
肠道里的微生物和皮肤上的一样吗?
一次搞明白 Session、Cookie、Token,面试问题全稿定
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
随机推荐
2022 words for yourself
GEE(三):计算两个波段间的相关系数与相应的p值
Line test graph reasoning graph group class
Basic knowledge of linked list
ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
Microbial health network, how to restore microbial communities
智慧社区和智慧城市之间有什么异同
智慧社區和智慧城市之間有什麼异同
Gbu1510-asemi power supply special 15A rectifier bridge gbu1510
[untitled] reprint melting ice - track icedid server with a few simple steps
Brush question 6
LeetCode206. Reverse linked list [double pointer and recursion]
About idea cannot find or load the main class
Introduction to redis and jedis and redis things
Unity dynamically merges mesh textures
Line test - graphic reasoning - 6 - similar graphic classes
Leetcode94. Middle order traversal of binary trees
三菱PLC slmp(mc)协议
十四、数据库的导出和导入的两种方法
[language programming] exe virus code example