Partilhar via


SPDatabase.Provision Method (SqlConnectionStringBuilder, String, Dictionary<String, Boolean>)

Prepares a Microsoft SQL Server database for use with Microsoft SharePoint Foundation. If the database does not exist it will be created. If the database exists prior to calling the method, it will be provisioned with the SharePoint schema.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Shared Sub Provision ( _
    connectionString As SqlConnectionStringBuilder, _
    provisioningScriptPath As String, _
    options As Dictionary(Of String, Boolean) _
)
'Usage
Dim connectionString As SqlConnectionStringBuilder
Dim provisioningScriptPath As String
Dim options As Dictionary(Of String, Boolean)

SPDatabase.Provision(connectionString, _
    provisioningScriptPath, options)
protected static void Provision(
    SqlConnectionStringBuilder connectionString,
    string provisioningScriptPath,
    Dictionary<string, bool> options
)

Parameters

  • provisioningScriptPath
    Type: System.String

    A string that contains the file system path of the provisioning script.

See Also

Reference

SPDatabase Class

SPDatabase Members

Provision Overload

Microsoft.SharePoint.Administration Namespace