当前位置:网站首页>附加简化版示例数据库到SqlServer数据库实例中
附加简化版示例数据库到SqlServer数据库实例中
2022-07-06 09:22:00 【不许秃】
问题展示
当我们执行 附加简化版示例数据库到SqlServer数据库实例中 的操作时可能出错:

分析出错的原因(同时提供解决报错的方法):
1.下载的AdventureWorks的zip包和SQL Server Management Studio的版本不一致

SQL Server Management Studio2008

AdventureWorks2008
(版本一定要一致才行,不然附加数据库时会出错)
2.不是以管理员身份运行SQL Server Management Studio

(要进行附加数据库的操作要以管理员的身份运行SQL Server Management Studio)
3.权限放置附加数据库的文件夹的权限问题
(1)解压AdventureWorks的zip包,右键点击解压后的AdventureWorks文件夹,打开 “属性” ,
点开 “安全” 那一栏,点击 “编辑” 选项

(2)接着我们可以看到 AdventureWorks 的权限 的窗口 ,点击 “添加”
(3)来到 选择用户/组 的窗口,点击 “高级”,在新弹出的窗口选择 “立即查找” ,找到并选中 “Everyone” ,最后点击 “确定”



(4)在Everyone的权限下 ,“允许”列全选 , “应用” 后 ——>点击 “确定”

(5)最后打开SQL Server Management Studio 连接服务器,附加数据库......


附加成功!
成功解决问题记得回来给我点赞!!!蟹蟹~
边栏推荐
猜你喜欢

Nuxtjs快速上手(Nuxt2)
![[au cours de l'entrevue] - Comment expliquer le mécanisme de transmission fiable de TCP](/img/d6/109042b77de2f3cfbf866b24e89a45.png)
[au cours de l'entrevue] - Comment expliquer le mécanisme de transmission fiable de TCP

A piece of music composed by buzzer (Chengdu)

深度强化文献阅读系列(一):Courier routing and assignment for food delivery service using reinforcement learning

自定义RPC项目——常见问题及详解(注册中心)

Relationship between hashcode() and equals()

1.C语言初阶练习题(1)

Pit avoidance Guide: Thirteen characteristics of garbage NFT project

【手撕代码】单例模式及生产者/消费者模式

2. C language matrix multiplication
随机推荐
Beautified table style
Reinforcement learning series (I): basic principles and concepts
String abc = new String(“abc“),到底创建了几个对象
C language to achieve mine sweeping game (full version)
About the parental delegation mechanism and the process of class loading
MySQL lock summary (comprehensive and concise + graphic explanation)
撲克牌遊戲程序——人機對抗
7. Relationship between array, pointer and array
Mode 1 two-way serial communication is adopted between machine a and machine B, and the specific requirements are as follows: (1) the K1 key of machine a can control the ledi of machine B to turn on a
5月27日杂谈
[modern Chinese history] Chapter 9 test
fianl、finally、finalize三者的区别
4. Branch statements and loop statements
记一次猫舍由外到内的渗透撞库操作提取-flag
7-6 矩阵的局部极小值(PTA程序设计)
A piece of music composed by buzzer (Chengdu)
魏牌:产品叫好声一片,但为何销量还是受挫
Zatan 0516
Principles, advantages and disadvantages of two persistence mechanisms RDB and AOF of redis
2. C language matrix multiplication