解决the database principal owns a schema in the database and cannot be dropped问题
摘自 http://www.cnblogs.com/autumn/articles/853442.html
TITLE: Microsoft SQL Server Management Studio
------------------------------
Drop failed for User 'SQL2K5User'. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Drop+User&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
The database principal owns a schema in the database, and cannot be dropped. (Microsoft SQL Server, Error: 15138)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.3042&EvtSrc=MSSQLServer&EvtID=15138&LinkId=20476
解决方案:
1) Expand Schemas(should be like a folder under <yourdatabase> -> Security) .
2) Delete the unwanted "userSchema".
3) Then, go back to the User(a folder like thing) and delete it.
ps: select * from sys.schemas where principal_id = user_id('user_name')
转载于:https://www.cnblogs.com/yushiro/archive/2009/08/05/1539647.html
解决the database principal owns a schema in the database and cannot be dropped问题相关推荐
- 解决“the database principal owns a schema in the database and cannot be dropped“问题
解决"the database principal owns a schema in the database and cannot be dropped"问题: 这个提示就是说明 ...
- Msg 15138 The database principal owns a schema in the database, and cannot be dropped.
删除用户报错: Msg 15138, Level16, State 1, Line 1 The database principal owns a schemain the database, and ...
- duplicate database的时候,rman连接 auxiliary database的后状态不正确
duplicate database的时候,rman连接 auxiliary database的后状态不正确 auxiliary database 已经被startup nomount,但是rman连 ...
- 新手解决Connections could not be acquired from the underlying database!Java代码上传到服务器连接不上数据库
本人刚入门Java,最近在开发一个项目,由于项目中有些问题需要与客户沟通.就想着把程序先上传到服务器上,先是上传到我之前用的服务器,服务器没有配置Java 环境.我自己配置好环境后把编译后代码上传上去 ...
- Git报错解决——insufficient permission for adding an object to repository database
今天在使用git提交代码时出现了以下报错 insufficient permission for adding an object to repository database 首先分析出现错误的原因 ...
- 【转】解决shiro的Principal属性动态修改无效问题
原文转载自:https://www.cnblogs.com/exmyth/p/13261860.html 因为要保存一些用户名之外的内容在shiro中,所以创建了一个ShiroUser的类,当用户修改 ...
- 解决:mysql报错ERROR 1049 (42000): Unknown database ‘数据库‘
其实我是犯了一个很严重的错误,报这个错无非就两个原因. 原因一:你的账户密码后面多了一个空格,也就是说你的数据库不对. 解决办法:如果是登录密码的时候就报这个错误,如下图所示: 那么就有可能p和123 ...
- 解决PowerBuilder错误:unable to load the requested database interface please
点击红色框提示:unable to load the requested database interface please make sue both the interface and clien ...
- 解决Connections could not be acquired from the underlying database!
之前一直认为是代码错了,后来网上查资料,发现可能是C3P0和mysql的版本不匹配导致的,更改完C3P0的版本 以后就好了,更改完的版本如下: <dependency><groupI ...
最新文章
- matlab求一个方程组的系数矩阵,【求解】matlab求解非齐次方程组,但是系数矩阵是复数,求帮忙...
- Java设计模式(16)中介模式(Mediator模式)
- Java Formatter out()方法与示例
- K-Means ++ 算法
- js中div显示和隐藏钮为什么页面总是跳一下到最上面
- ERROR: Cannot unpack file C:\Users\admin\AppData\Local\Temp\pip-unpack-yo8pmupp\simple.htm (download
- 学长分享:计算机专业大一学生如何学习C语言?如何自学C语言?大学C语言学习视频教程谁有?
- 集成电路的设计 —— 晶体管
- python数字转换拼音程序_课内资源 - 基于Python的拼音汉字转换程序
- Ubuntu安装ros rotors 以及中间出现的问题的解决办法
- 微信小程序如何在地图选择地址并返回经纬度
- github如何合并分支
- 我和ChatGPT pair 整理的测试类型清单
- 限制和允许某些IP访问服务器
- Android Studio从入门到精通的免费视频教程
- 计算机中的英语六级作文万能模板,英语六级作文万能模板(4篇)
- 农业信息化技术与应用案例test
- c语言实现乘法口诀,乘法口诀表,C语言实现
- 制度罚则--上线结果通知模板
- css 遥控器界面,智能电视用户体验设计之遥控器篇
热门文章
- Netty服务如何写出数据
- KALI LINUX渗透测试学习笔记
- 第一台超高速巨型电子计算机,1997年,( )巨型机的研制成功,使我国在这个领域跨入了世界先进行列。...
- Hbase - RIT机制
- C语言如何求出一堆整数的最大值
- 量子计算机基本信息单位,单粒子的量子态可作为存储最基本单位
- 安阳工学院计算机类宿舍,2021年安阳工学院新生宿舍条件和宿舍环境图片
- 译体验|Qualtrics:客户体验的六大法则
- 视觉SLAM——特征点法与直接法对比以及主流开源方案对比 LSD SVO ORB DSO
- Python调用OpenCV实现图像平滑处理