SPDatabaseAction members

Provides an abstract class for all database upgrade actions.

The SPDatabaseAction type exposes the following members.

Constructors

  Name Description
Protected method SPDatabaseAction Initializes a new instance of the SPDatabaseAction class.

Top

Properties

  Name Description
Public property Description Gets a string that contains a description for the action. (Inherited from SPAction.)
Protected property FromBuildVersion Gets the version number of the build that is being upgraded. (Inherited from SPAction.)
Protected property HonorTargetSchemaVersion Obsolete. Property to indicate if schema version should be honored for actions with FromBuild/ToBuild. (Inherited from SPAction.)
Public property Log Gets an SPLog object. The SPAction class should use this SPLog object to log any errors, warnings or debug information during the upgrade process. (Inherited from SPAction.)
Protected property Manager Gets the Microsoft SharePoint Foundation upgrade manager object. (Inherited from SPAction.)
Protected property SchemaUpgradeActionDelegate
Public property ShouldRun Gets a Boolean value that indicates whether the upgrade action should run. (Inherited from SPAction.)
Protected property SPDatabaseSequence Gets the typed upgrade sequence.
Protected property SPSequence Gets the sequence object that represents the upgrade sequence. (Inherited from SPAction.)
Protected property SqlSession Gets an ISqlSession object which represents the SQL database that is being upgraded by calling the SPDatabaseAction object.
Protected property TargetSchemaVersion Gets the schema version to which the Microsoft SharePoint Foundation installation is being upgraded. (Inherited from SPAction.)
Protected property ToBuildVersion Gets the version number of the build to which the Microsoft SharePoint Foundation installation is being upgraded. (Inherited from SPAction.)
Protected property Type Gets the type of object that is being upgraded through the action. (Inherited from SPAction.)
Protected property UpgradableObject Gets an object representing the object that is being upgraded by this SPAction class, as well as other SPAction objects contained in the SPSequence object. (Inherited from SPAction.)

Top

Methods

  Name Description
Public method Commit Commits the database session. (Overrides SPAction.Commit().)
Public method Dispose Disposes the database session and releases resources. (Overrides SPAction.Dispose().)
Protected method DropAllFKs
Protected method DropColumn
Protected method DropColumnWithDefaultConstraint
Protected method DropConstraint
Protected method DropDefaultConstraint
Protected method DropFunction
Protected method DropIndex
Protected method DropProc
Protected method DropStatistics
Protected method DropTable
Protected method DropTrigger
Protected method DropType
Protected method DropView
Public method Equals (Inherited from Object.)
Protected method ExecuteSql(String) Executes a series of Transact-SQL queries based on the specified string.
Protected method ExecuteSql(String, Int32) Executes a series of Transact-SQL queries based on the specified string within a specified time-out period.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Initialize Initializes the upgrade action based on the specified object and sequence. (Inherited from SPAction.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Rollback Rolls back the database session. (Overrides SPAction.Rollback().)
Public method ToString (Inherited from Object.)
Public method Upgrade (Overrides SPAction.Upgrade().)

Top

See also

Reference

SPDatabaseAction class

Microsoft.SharePoint.Upgrade namespace