Freigeben über


Database.DatabaseSnapshotBaseName-Eigenschaft

Gets the name of the snapshot base for the database.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property DatabaseSnapshotBaseName As String 
    Get 
    Set
'Usage
Dim instance As Database 
Dim value As String 

value = instance.DatabaseSnapshotBaseName

instance.DatabaseSnapshotBaseName = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public string DatabaseSnapshotBaseName { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
virtual property String^ DatabaseSnapshotBaseName {
    String^ get () sealed;
    void set (String^ value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
abstract DatabaseSnapshotBaseName : string with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
override DatabaseSnapshotBaseName : string with get, set
final function get DatabaseSnapshotBaseName () : String 
final function set DatabaseSnapshotBaseName (value : String)

Eigenschaftswert

Typ: System.String
A String value that uniquely specifies the name of the snapshot base for the database.

Implementiert

IDatabaseOptions.DatabaseSnapshotBaseName

Hinweise

A database snapshot is a copy of the database at a point in time. The database snapshot base is the source database that is used to create the snapshot.

Beispiele

Console.WriteLine(db.DatabaseSnapshotBaseName)

Siehe auch

Verweis

Database Klasse

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Arbeiten mit Datenbankobjekten

Arbeiten mit Momentaufnahmeisolation

Erstellen, Ändern und Löschen von Datenbanken

CREATE DATABASE (Transact-SQL)