SPDatabase.Provision Method (SqlConnectionStringBuilder, TextReader, Dictionary<String, Boolean>)
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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
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)
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.