Share via


SPDatabase.Provision method

Creates a Microsoft SQL Server database with a user schema, creating the schema if necessary.

Overload list

  Name Description
Public method Provision() Makes the changes to the local server that are needed before the object can be used. (Inherited from SPPersistedObject.)
Protected methodStatic member Provision(SqlConnectionStringBuilder, TextReader, Dictionary<SPDatabase.DatabaseOptions, Boolean>)
Protected methodStatic member Provision(SqlConnectionStringBuilder, TextReader, Dictionary<String, Boolean>) Obsolete. Creates a Microsoft SQL Server database with a user schema, creating the schema if it is necessary
Protected methodStatic member Provision(SqlConnectionStringBuilder, String, Dictionary<SPDatabase.DatabaseOptions, Boolean>)
Protected methodStatic member Provision(SqlConnectionStringBuilder, String, Dictionary<String, Boolean>) Obsolete. Prepares a Microsoft SQL Server database for use with Microsoft SharePoint Foundation. If the database does not exist it will be created. If the database exists prior to calling the method, it will be provisioned with the SharePoint schema.
Protected methodStatic member Provision(String, String, Dictionary<SPDatabase.DatabaseOptions, Boolean>)
Protected methodStatic member Provision(String, String, Dictionary<String, Boolean>) Obsolete. Creates a Microsoft SQL Server database with a user schema, creating the schema if necessary.

Top

See also

Reference

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace