当前位置:网站首页>SQLserver2008 拒绝了对对象 '****' (数据库 '****',架构 'dbo')的 SELECT 权限
SQLserver2008 拒绝了对对象 '****' (数据库 '****',架构 'dbo')的 SELECT 权限
2022-06-13 01:59:00 【司马弈】
在网上看了很多资料都是空说一谈,都只是说很简单,然后没有说遇到这样的情况具体该怎么做,看到这里都知道是权限问题,其实我们每一个人都知道,又是我觉得我还是要给以后遇到的朋友个解决方法:
这里用到的数据库是08版本的(2012及其他版本原理一样,方法同样适用),出现了这种一直报权限错误,错误截图如下:
所见效果描述:在windows身份验证的 情况下登陆进去数据库的表都是可以打开的,当换到sa或者别的账号登陆进去的时候这个时候我们点击我们的数据库就会报错:
解决方法如下:
1、首先我们要用windows身份登陆进去进行设置,因为你的sa等账号登陆进去设置都是无效的【这一步很重要】。
2、找到对应的库下面的安全性->架构->dbo->右键属性【权限】->搜索->浏览【public】->确定,在右边的具有授权,如果不知道的情况下全部打钩即可。参照截图如下:
3、如果这个时候还是用sa或者别的账号可以登陆了,进去之后右键编辑表错误,那么这个时候你就需要进行下面的设置了。
4、windows登陆进去选择表右键属性【权限】->搜索->浏览【public】->确定,在右边的具有授权,如果不知道的情况下全部打钩即可。参照截图如下,最终完美解决问题。效果如下图所示:
边栏推荐
- 万字讲清 synchronized 和 ReentrantLock 实现并发中的锁
- C语言压缩字符串保存到二进制文件,从二进制文件读取压缩字符串后解压。
- numpy多维数组转置transpose
- Use of Arduino series pressure sensors and detected data displayed by OLED (detailed tutorial)
- 深度学习调参技巧详解
- 华为设备配置IP和虚拟专用网混合FRR
- Examples of using the chromium base library
- pringboot之restfull接口规范注解(二)
- 记录:如何解决MultipartFile类的transferTo()上传图片报“系统找不到指定的路径“问题【亲测有效】
- Rsync transport exclusion directory
猜你喜欢
Looking at Qianxin's "wild prospect" of network security from the 2021 annual performance report
Workspace for ROS
Establishment of microservice development environment
Plumber game
QT realizes mind mapping function (II)
Devaxpress Chinese description --tcxpropertiesstore (property store recovery control)
白噪声的详细理解
开发者来稿|AMD赛灵思中文论坛分享 - 提问的智慧
4、 Improvement of warehousing management function
6、 Implementation of warehouse out management function
随机推荐
[the second day of actual combat of smart lock project based on stm32f401ret6 in 10 days] GPIO and register
Use mediapipe+opencv to make a simple virtual keyboard
Pyflink implements custom sourcefunction
Calculation of accuracy, recall rate, F1 value and accuracy rate of pytorch prediction results (simple implementation)
一种不带CPU的DPU架构:Hyperion
分享三个关于CMDB的小故事
[the second day of actual combat of smart lock project based on stm32f401ret6 in 10 days] (lighting with library function and register respectively)
(no plug-in) summary of vim basic shortcut keys
General IP address, account and password of mobile IPv6 optical cat login, and mobile optical cat is in bridging mode
dfs与bfs解决宝岛探险
In the third quarter, the revenue and net profit increased "against the trend". What did vatti do right?
Get started quickly cmake
Ruixing coffee 2022, extricating itself from difficulties and ushering in a smooth path
华为设备配置IP和虚拟专用网混合FRR
Introduction to Google unit testing tools GTEST and gmoke
How many smart bids does Google have?
Implementation of pointer linked list
Matplotlib drawing Chinese garbled code
华为设备配置CE双归属
TensorFlow 2. X multi graphics card distributed training