码迷,mamicode.com
首页 > 数据库 > 详细

Restore content database in sharepoint

时间:2014-09-28 21:51:25      阅读:274      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   ar   sp   2014   on   c   log   

sometimes, we need backup content database about sharepoint site, then restore it one day. of course, we can backup the contetn database in SQL, then restore it in Sharepoint Central Admin, but it often failed to restore DB using Central Admin, I didn‘t find the reason.so I had to find a good way to around it. the best is Powershell cmd.

here is my steps:

1. firsty, we need dismount the old DB

Dismount-SPContentDatabase “OldContentDatabaseName" 


2. then, attach the newe DB

Mount-SPContentDatabase Migrated_WSS_Content -DatabaseServer "SQLServerClusterName" -WebApplication <a target=_blank href="http://siteurl">http://siteurl</a>


 

 

Restore content database in sharepoint

标签:blog   http   io   ar   sp   2014   on   c   log   

原文地址:http://blog.csdn.net/tristan_dong/article/details/39644111

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!