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()

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

上一篇:转载:JS快速获取图片宽高的方法


下一篇:supervisor简要使用说明