none
Restore deleted site collection and Content DB RRS feed

  • Question

  • Hi,

    A site collection was deleted from SharePoint 2007 and its content DB was also deleted, based on a request.

    We now have to restore this back. The DB has been restored using  SQL backups, but struggling with if I need to use this stsadm or another to get the site collection working:

    Stsadm –o restore –url <restoretoURL> -filename <filetorestorefrom>

    tried the above but says cannot find file, what location do I need to tell it, I tried typing in the SQL server name but didn't work

    Logging to SQL shows the DB is attached, as I only have a detach option available.

    Thanks 

    Wednesday, August 12, 2015 10:04 AM

Answers

  • Use this:

    stsadm -o addcontentdb -databasename <databasename> -databaseserver <database server name> -url <url for web application>

    Hope this helps.

    Thanks Mohit

    • Marked as answer by G99 Wednesday, August 12, 2015 10:59 AM
    Wednesday, August 12, 2015 10:23 AM