1.I have one web application 'WebAppA.company1.com' in production SP Farm with a content database Wss_Content_DB1 and i taken backup and restored in staging as Wss_Content_DB2 and mounted to webapplication in staging.

2.In staging i modified the design,created new page layouts,master pages and created some sub sites

3.In Staging i taken backup of Content database 'Wss_Content_DB2' and restored in same Production SharePoint Farm SQL Instance as new content database Wss_Content_DB3_FromStaging'

  1. and now i want to create a new Web Application with different host name 'WebApp2.Company1.com' in Same SP Production farm with 'Wss_Content_DB3_FromStaging' Content database

Can i do this step 4 successfully because WebApp2.company1.com content database is copy of Webapp1.company1.com database?

1 Answer 1


We can attach an existing content database to a web application.

To attach an existing content database to a web application:

1.Restore a backup copy of the database in SQL.

2.Use the following PowerShell to attach an existing content database to a web application:

Mount-SPContentDatabase "<ContentDb>" -DatabaseServer "<DbServer>" -WebApplication http://SiteName

Refer to the article about attach or detach content databases in SharePoint 2013:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.