Share This Post


Attach an Existing SharePoint Content Database to the Farm Using PowerShell

Using PowerShell, the following scriptlet mounts an existing database to the sitename web application. Replace MyDatabase, MyServer, and sitename with your values.


Mount-SPContentDatabase “MyDatabase” -DatabaseServer “MyServer” -WebApplication http://sitename


Looking for an awesome, no-nonsense technical conference for IT Pros, Developers, and DevOps? IT/Dev Connections kicks off in San Francisco in 2017!

IT/Dev Connections

Share This Post

Leave a Reply