Some times we need to attach detached database for webapplication
step1: Dismount the existing database for webapplication
Dismount-SPContentDatabase "RestoreDB_WSS_Content_Intranet"
step2: Mount the required database
Mount-SPContentDatabase “RestoreDB_WSS_Content_Intranet” -DatabaseServer "SharePointStagDB" -WebApplication http://Server01:46154/ -AssignNewDatabaseId
step3: Test any errors occured
Test-SPContentDatabase -Identity "RestoreDB_WSS_Content_Intranet"
step4: make it online to use that webapplication
Set-SPContentDatabase -Identity "RestoreDB_WSS_Content_Intranet" -Status OnLine
step1: Dismount the existing database for webapplication
Dismount-SPContentDatabase "RestoreDB_WSS_Content_Intranet"
step2: Mount the required database
Mount-SPContentDatabase “RestoreDB_WSS_Content_Intranet” -DatabaseServer "SharePointStagDB" -WebApplication http://Server01:46154/ -AssignNewDatabaseId
step3: Test any errors occured
Test-SPContentDatabase -Identity "RestoreDB_WSS_Content_Intranet"
step4: make it online to use that webapplication
Set-SPContentDatabase -Identity "RestoreDB_WSS_Content_Intranet" -Status OnLine
No comments:
Post a Comment