SPDatabase.Provision method (String, String, Dictionary<String, Boolean>)
NOTE: This API is now obsolete.
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)
Syntax
'Declaration
<ObsoleteAttribute("Use SPDatabase.Provision method that takes Dictionary<SPDatabase.DatabaseOptions, bool> parameter")> _
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)
[ObsoleteAttribute("Use SPDatabase.Provision method that takes Dictionary<SPDatabase.DatabaseOptions, bool> parameter")]
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.