当前位置:网站首页>十四、数据库的导出和导入的两种方法
十四、数据库的导出和导入的两种方法
2022-07-07 21:50:00 【beyond谚语】
一、以SQL脚本格式导出(推荐)
导出
右击需要导出的数据库,任务—>生成脚本
下一步
选择要导出的数据库,下一步
内容根据需求修改,没啥需求直接下一步
勾选 表
勾选需要导出的数据库中的表
选择脚本保存的路径和脚本名称
完成
关闭
打开脚本所位置

导入
脚本第一行为USE [fiber_yy]
故我们需要事先手动创建一个名为fiber_yy的数据库
点击 新建查询 选择fiber_yy数据库
把脚本内容全部复制过来即可
之后点击 执行
就可以看见fiber_yy数据库的表都有了
二、以mdb文件格式导出
导出


C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA
复制这俩个文件即可
例如我复制到G盘里面
导入

找到数据库的位置


权限不够需要对这两个文件权限进行修改
右击.mdf文件 属性
若还报错,需要再对上级文件夹进行权限赋值
怎么说呢,还是建议存放到C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA路径下
因为这个是Microsoft SQL Server数据库存放的位置,故有权限,也不需要修改啥东西
就i可以将数据库导入进来了
边栏推荐
- PCL .vtk文件与.pcd的相互转换
- JS triangle
- Byte hexadecimal binary understanding
- LeetCode142. Circular linked list II [two pointers, two methods for judging links in the linked list and finding ring points]
- 微信论坛交流小程序系统毕业设计毕设(4)开题报告
- Txt file virus
- iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地
- Brush question 4
- Cause analysis and solution of too laggy page of [test interview questions]
- 2021-01-12
猜你喜欢

Line test - graphic reasoning - 1 - Chinese character class

LeetCode203. Remove linked list elements

消费品企业敏捷创新转型案例

Ligne - raisonnement graphique - 4 - classe de lettres
![Leetcode interview question 02.07 Linked list intersection [double pointer]](/img/a5/58b4735cd0e47f1417ac151a1bcca4.jpg)
Leetcode interview question 02.07 Linked list intersection [double pointer]

Innovation today | five key elements for enterprises to promote innovation

GEE(四):计算两个变量(影像)之间的相关性并绘制散点图

微信论坛交流小程序系统毕业设计毕设(3)后台功能

行测-图形推理-3-对称图形类

今日创见|企业促进创新的5大关键要素
随机推荐
Sword finger offer 28 Symmetric binary tree
Basic knowledge of linked list
Mitsubishi PLC SLmP (MC) protocol
Some parameters of Haikang IPC
行测-图形推理-9-线条问题类
聊聊 Dart 的空安全 (null safety) 特性
微生物健康網,如何恢複微生物群落
How to operate DTC community?
消费品企业敏捷创新转型案例
网络安全-对操作系统进行信息查询
Ligne - raisonnement graphique - 4 - classe de lettres
Cases of agile innovation and transformation of consumer goods enterprises
Line test - graphic reasoning - 2 - black and white lattice class
Debezium series: support the use of variables in the Kill Command
Line measurement - graphic reasoning -9- line problem class
What does the model number of asemi rectifier bridge kbpc1510 represent
Force deduction - question 561 - array splitting I - step by step parsing
De la famille debezium: SET ROLE statements supportant mysql8
Interview questions: how to test app performance?
Advantages and disadvantages of rest ful API