Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the unique ID of the database where the backup was taken.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public ReadOnly Property DatabaseGuid As Guid
Get
'Usage
Dim instance As BackupSet
Dim value As Guid
value = instance.DatabaseGuid
public Guid DatabaseGuid { get; }
public:
property Guid DatabaseGuid {
Guid get ();
}
member DatabaseGuid : Guid
function get DatabaseGuid () : Guid
Property Value
Type: System.Guid
The database GUID.
Remarks
When the database is restored, a new GUID value is assigned.