当前位置:网站首页>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
边栏推荐
- 微信论坛交流小程序系统毕业设计毕设(8)毕业设计论文模板
- Leetcode19. Delete the penultimate node of the linked list [double pointer]
- ASEMI整流桥KBPC1510的型号数字代表什么
- CTF exercise
- 【测试面试题】页面很卡的原因分析及解决方案
- It's no exaggeration to say that this is the most user-friendly basic tutorial of pytest I've ever seen
- 网络安全-钓鱼
- Unity 动态合并网格纹理
- Locate to the bottom [easy to understand]
- De la famille debezium: SET ROLE statements supportant mysql8
猜你喜欢
二叉树(Binary Tree)
PCL . VTK files and Mutual conversion of PCD
微信论坛交流小程序系统毕业设计毕设(7)中期检查报告
双非大厂测试员亲述:对测试员来说,学历重要吗?
微信论坛交流小程序系统毕业设计毕设(1)开发概要
聊聊 Dart 的空安全 (null safety) 特性
PCL .vtk文件与.pcd的相互转换
Sword finger offer 55 - I. depth of binary tree
Interview questions: how to test app performance?
Line test - graphic reasoning -7- different graphic classes
随机推荐
PCL . VTK files and Mutual conversion of PCD
Debezium series: set role statement supporting mysql8
Introduction to redis and jedis and redis things
Basic knowledge of linked list
嵌入式音频开发中的两种曲线
De la famille debezium: SET ROLE statements supportant mysql8
U盘拷贝东西时,报错卷错误,请运行chkdsk
Debezium series: MySQL tombstone event
Gbu1510-asemi power supply special 15A rectifier bridge gbu1510
Txt file virus
安踏DTC | 安踏转型,构建不只有FILA的增长飞轮
Line test - graphic reasoning -7- different graphic classes
Line test - graphic reasoning -5- one stroke class
Debezium系列之:支持 mysql8 的 set role 語句
About idea cannot find or load the main class
Talk about DART's null safety feature
LeetCode142. Circular linked list II [two pointers, two methods for judging links in the linked list and finding ring points]
What does the model number of asemi rectifier bridge kbpc1510 represent
Leetcode94. Middle order traversal of binary trees
网络安全-安装CentOS