SharePoint附加内容数据库时报错

今天遇到一个很奇怪的问题,在sharepoint管理中心中给web application添加内容数据库时报错:The SharePoint database named WSS Content already exists. You must provide additional names for the new database

经过检查,Farm中的其他web application并未使用此数据库

后尝试删除掉此web application之后重新创建,得到一个新的错误:An object in the SharePoint administrative framework, "SPWebApplication Name=Webapplication", could not be deleted because other objects depend on it. Update all of these dependants to point to null or different objects and retry this operation. The dependant objects are as follows:

推测应该是之前未彻底断开此DB和farm之间的关联,故使用如下指令,删除掉content DB(注意先备份

 

1、get-spdatabase

2、$contentdb= get-spdatabase -Identiy “XXXXX”

3、$contentdb.Delete()

 

使用以上指令后,重新执行附加内容数据库操作即可

 

转载于:https://www.cnblogs.com/IsaacShu/p/9253924.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值