当前位置:网站首页>十四、数据库的导出和导入的两种方法
十四、数据库的导出和导入的两种方法
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可以将数据库导入进来了
边栏推荐
- DTC社群运营怎么做?
- 肠道里的微生物和皮肤上的一样吗?
- Transparent i/o model from beginning to end
- Understand the session, cookie and token at one time, and the interview questions are all finalized
- PCL . VTK files and Mutual conversion of PCD
- 微信论坛交流小程序系统毕业设计毕设(8)毕业设计论文模板
- Software evaluation center ▏ what are the basic processes and precautions for automated testing?
- Online interview, how to better express yourself? In this way, the passing rate will be increased by 50%~
- 消息队列与快递柜之间妙不可言的关系
- 小程序多种开发方式对比-跨端?低代码?原生?还是云开发?
猜你喜欢

微生物健康網,如何恢複微生物群落

Line test - graphic reasoning - 3 - symmetric graphic class

Line test - graphic reasoning -5- one stroke class

行測-圖形推理-4-字母類

Line test - graphic reasoning - 2 - black and white lattice class

I wish you all the best and the year of the tiger

Personal statement of testers from Shuangfei large factory: is education important for testers?

Line test - graphic reasoning - 6 - similar graphic classes

Software test classification

Sword finger offer 27 Image of binary tree
随机推荐
Circumvention Technology: Registry
Interview questions: how to test app performance?
DTC社群运营怎么做?
行测-图形推理-5-一笔画类
消息队列与快递柜之间妙不可言的关系
Early childhood education industry of "screwing bar": trillion market, difficult to be a giant
网络安全-对操作系统进行信息查询
ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
安踏DTC | 安踏转型,构建不只有FILA的增长飞轮
JS triangle
微信论坛交流小程序系统毕业设计毕设(3)后台功能
Digital transformation: five steps to promote enterprise progress
Database daily question --- day 22: last login
ArcGIS:矢量要素相同字段属性融合的两种方法
Advantages and disadvantages of rest ful API
Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
How to operate DTC community?
Innovation today | five key elements for enterprises to promote innovation
行测-图形推理-6-相似图形类
Years of summary, some core suggestions for learning programming