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

NOTE: This API is now obsolete.

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)

Syntax

'Declaration
<ObsoleteAttribute("Use SPDatabase.Provision method that takes Dictionary<SPDatabase.DatabaseOptions, bool> parameter")> _
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)
[ObsoleteAttribute("Use SPDatabase.Provision method that takes Dictionary<SPDatabase.DatabaseOptions, bool> parameter")]
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