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

Creates a Microsoft SQL Server database with a user schema, creating the schema if necessary.

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

Syntax

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

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

Parameters

  • connectionString
    Type: System.String

    A string that specifies the connection string that is used to connect to the database.

  • provisioningScriptPath
    Type: System.String

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

See Also

Reference

SPDatabase Class

SPDatabase Members

Provision Overload

Microsoft.SharePoint.Administration Namespace