Thursday, April 7, 2016

Attach Content Database with SharePoint WebApplication


I am going to explain how to attach a content database with SharePoint Web Application. Follow the below steps to attach DB

  • First Restore the content database in local sql server
  • Open the powershell, first test the db for safer side. Give  Test-SPContentDatabase -name yourcontentdbname -WebApplication "yourwebapplication"
  • It will give some exception if the DB is not attachable with web application
  • Then mount the database,  Mount-SPContentDatabase "yourcontentdbname" -WebApplication yourwebapplicationname
  • It will show the progress of mounting DB
  • We will get 100% notification once DB mounted

No comments:

Post a Comment