SPContentDatabase.CreateUnattachedContentDatabase Method

Include Protected Members
Include Inherited Members

Creates a content database object without registering it in the configuration database of the farm.

Overload List

  Name Description
Public methodStatic member CreateUnattachedContentDatabase(SqlConnectionStringBuilder) Creates a content database object, from the database with the specified connection string, without registering it in the configuration database of the farm.
Public methodStatic member CreateUnattachedContentDatabase(String, String, String, String) Creates a content database object, by using the specified connection information, without registering it in the configuration database of the farm.

Top

Remarks

Typically, unattached content databases are used for data recovery scenarios and to get orphaned site collections and sites.

See Also

Reference

SPContentDatabase Class

SPContentDatabase Members

Microsoft.SharePoint.Administration Namespace

Other Resources

Fine-grained Data Restoration from Unattached Database