共用方式為


SPContentDatabase.CreateUnattachedContentDatabase method (SqlConnectionStringBuilder)

從指定的連接字串,資料庫會建立內容資料庫物件,而不將其登錄伺服器陣列設定資料庫中。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Shared Function CreateUnattachedContentDatabase ( _
    connection As SqlConnectionStringBuilder _
) As SPContentDatabase
'用途
Dim connection As SqlConnectionStringBuilder
Dim returnValue As SPContentDatabase

returnValue = SPContentDatabase.CreateUnattachedContentDatabase(connection)
public static SPContentDatabase CreateUnattachedContentDatabase(
    SqlConnectionStringBuilder connection
)

參數

傳回值

Type: Microsoft.SharePoint.Administration.SPContentDatabase
內容資料庫。

Exceptions

Exception Condition
ArgumentNullException

連線參數,則a null reference (Nothing in Visual Basic)。

備註

一般而言,從未附加的內容資料庫可用的資料修復案例,並取得孤立的網站集合與網站。

請參閱

參照

SPContentDatabase class

SPContentDatabase members

CreateUnattachedContentDatabase overload

Microsoft.SharePoint.Administration namespace

其他資源

Fine-grained Data Restoration from Unattached Database