当前位置:网站首页>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
边栏推荐
- QT graphicsview graphical view usage summary with flow chart development case prototype
- Database daily question --- day 22: last login
- Installing vmtools is gray
- Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
- JS triangle
- Sword finger offer 63 Maximum profit of stock
- 微信论坛交流小程序系统毕业设计毕设(8)毕业设计论文模板
- 三菱PLC slmp(mc)协议
- 开发那些事儿:Go加C.free释放内存,编译报错是什么原因?
- Introduction to redis and jedis and redis things
猜你喜欢
【测试面试题】页面很卡的原因分析及解决方案
Introduction to redis and jedis and redis things
Brush question 4
LeetCode206. Reverse linked list [double pointer and recursion]
Line test - graphic reasoning - 4 - alphabetic class
Gbu1510-asemi power supply special 15A rectifier bridge gbu1510
Line test - graphic reasoning - 2 - black and white lattice class
行测-图形推理-1-汉字类
开发那些事儿:Go加C.free释放内存,编译报错是什么原因?
Basic knowledge of binary tree
随机推荐
每日一题——PAT乙级1002题
V20变频器手自动切换(就地远程切换)的具体方法示例
智慧社区和智慧城市之间有什么异同
网络安全-burpsuit
Online interview, how to better express yourself? In this way, the passing rate will be increased by 50%~
30讲 线性代数 第五讲 特征值与特征向量
ArcGIS:矢量要素相同字段属性融合的两种方法
数字藏品加速出圈,MarsNFT助力多元化文旅经济!
网络安全-CSRF
What is ADC sampling rate (Hz) and how to calculate it
微信论坛交流小程序系统毕业设计毕设(1)开发概要
Brush question 4
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
【测试面试题】页面很卡的原因分析及解决方案
Line test - graphic reasoning - 3 - symmetric graphic class
Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
微信论坛交流小程序系统毕业设计毕设(3)后台功能
今日创见|企业促进创新的5大关键要素
Leetcode interview question 02.07 Linked list intersection [double pointer]
定位到最底部[通俗易懂]