Share via


SPDatabaseSnapshot class

Represents a database snapshot of a Microsoft SQL Server database.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.Backup.SPDatabaseSnapshot

Namespace:  Microsoft.SharePoint.Administration.Backup
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPDatabaseSnapshot
'Usage
Dim instance As SPDatabaseSnapshot
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPDatabaseSnapshot

Remarks

Database snapshots can be accessed like any database, although they are in read-only mode. However, database snapshots are only available in Microsoft SQL Server Enterprise Edition and Microsoft SQL Server Developer Edition. You can confirm whether database snapshots are supported for a given database by checking the IsSnapshotSupported property of the collection object from the Snapshots property.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

SPDatabaseSnapshot members

Microsoft.SharePoint.Administration.Backup namespace