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.StringA string that specifies the connection string that is used to connect to the database.
provisioningScriptPath
Type: System.StringA string that specifies the file system path of the provisioning script.
options
Type: System.Collections.Generic.Dictionary<String, Boolean>A Dictionary object that specifies the SQL database options to use in creating the database. See SPDatabase.DatabaseOptions for possible values.