当前位置:网站首页>十四、数据库的导出和导入的两种方法
十四、数据库的导出和导入的两种方法
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可以将数据库导入进来了
边栏推荐
- I wish you all the best and the year of the tiger
- Brush question 6
- Leetcode206. Reverse linked list
- 微信论坛交流小程序系统毕业设计毕设(4)开题报告
- 数字藏品加速出圈,MarsNFT助力多元化文旅经济!
- Line test - graphic reasoning - 2 - black and white lattice class
- Some parameters of Haikang IPC
- Develop those things: go plus c.free to free memory, and what are the reasons for compilation errors?
- Debezium系列之:支持 mysql8 的 set role 語句
- Sword finger offer 55 - I. depth of binary tree
猜你喜欢

Sword finger offer 27 Image of binary tree

数字藏品加速出圈,MarsNFT助力多元化文旅经济!

PCL . VTK files and Mutual conversion of PCD

微信论坛交流小程序系统毕业设计毕设(1)开发概要

Gbu1510-asemi power supply special 15A rectifier bridge gbu1510

Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors

Database daily question --- day 22: last login

V20变频器手自动切换(就地远程切换)的具体方法示例

Microbial Health Network, How to restore Microbial Communities

ASEMI整流桥KBPC1510的型号数字代表什么
随机推荐
Leetcode94. Middle order traversal of binary trees
How to operate DTC community?
De la famille debezium: SET ROLE statements supportant mysql8
Line test - graphic reasoning - 2 - black and white lattice class
微生物健康网,如何恢复微生物群落
微信论坛交流小程序系统毕业设计毕设(4)开题报告
Sword finger offer 27 Image of binary tree
Brush question 4
关于海康ipc的几个参数
Advantages and disadvantages of rest ful API
肠道里的微生物和皮肤上的一样吗?
Knowledge drop - PCB manufacturing process flow
Build an "immune" barrier in the cloud to prepare your data
Classification and prediction of heartbeat signal
Locate to the bottom [easy to understand]
Line test - graphic reasoning - 1 - Chinese character class
数字藏品加速出圈,MarsNFT助力多元化文旅经济!
Debezium系列之:支持 mysql8 的 set role 語句
2021-01-11
Leetcode19. Delete the penultimate node of the linked list [double pointer]