Partilhar via


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

  • provisioningScriptStream
    Type: System.IO.TextReader

    A TextReader object that specifies the stream of the provisioning script.

See Also

Reference

SPDatabase Class

SPDatabase Members

Provision Overload

Microsoft.SharePoint.Administration Namespace