使用命令行Move SharePoint Site Collection弹错的解决方案
最近在客户Production环境中对ContentDatabase做评估,其中包括对size特别大的Content Database做调整,创建新的Content Database并对SiteCollection做迁移。
在使用PowerShell执行MoveSite Collection过程中遇到下面错误“TheSELECT Permission was denied on the object 'MSP_RESOURCES…”。
经过排查发现主要是因为Content Database的权限问题导致的。
具体解决方法如下:
- 打开SQL Server,在Security中找到对应使用的user,点击右键打开Login Properties属性;
- 在弹出的窗口中选择User Mapping,找到对应的Content Database选择,在下面设置role中取消勾选“PSDataAccess”,点击OK保存;
- 重新执行PowerShell命令,Site Collection成功迁移,问题解决。
感谢阅读。