SPDatabase.Provision method (SqlConnectionStringBuilder, TextReader, Dictionary<String, Boolean>)
NOTE: This API is now obsolete.
Creates a Microsoft SQL Server database with a user schema, creating the schema if it is 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 SqlConnectionStringBuilder, _
provisioningScriptStream As TextReader, _
options As Dictionary(Of String, Boolean) _
)
'Usage
Dim connectionString As SqlConnectionStringBuilder
Dim provisioningScriptStream As TextReader
Dim options As Dictionary(Of String, Boolean)
SPDatabase.Provision(connectionString, _
provisioningScriptStream, options)
[ObsoleteAttribute("Use SPDatabase.Provision method that takes Dictionary<SPDatabase.DatabaseOptions, bool> parameter")]
protected static void Provision(
SqlConnectionStringBuilder connectionString,
TextReader provisioningScriptStream,
Dictionary<string, bool> options
)
Parameters
connectionString
Type: System.Data.SqlClient.SqlConnectionStringBuilderA SqlConnectionStringBuilder object that contains the connection string that is used to connect to the database.
provisioningScriptStream
Type: System.IO.TextReaderA TextReader object that specifies the stream of the provisioning script.
options
Type: System.Collections.Generic.Dictionary<String, Boolean>A Dictionary object that specifies SQL database options to use in creating the database. See SPDatabase.DatabaseOptions for possible values.