Use one of the following two methods of recovering individual SharePoint items:
Attaching the content database to a non-original SharePoint farm (for example, to a SharePoint recovery farm). The method is available for SharePoint 2007 and SharePoint 2010.
It is necessary to attach the content database to a non-original SharePoint farm because each object in a farm must have a unique ID. So, you will not be able to attach the database to the original farm.
Recovering from an unattached database. The method is available for SharePoint 2010 only.
This method allows you to recover only the following types of items: sites, lists, or document libraries.
To recover SharePoint items via attaching the content database to a farm
Attach the content database to a non-original SharePoint farm. To do this:
Make sure that you are performing this procedure under a farm administrator account that is a member of the db_owner role of the database. If not, add the account to this role by using Microsoft SQL Server Management Studio.
Run the following command on a front-end Web server: