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 or sets the database on which the backup or restore operation runs.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
'Declaration
Public Property Database As String
Get
Set
'Usage
Dim instance As BackupRestoreBase
Dim value As String
value = instance.Database
instance.Database = value
public string Database { get; set; }
public:
property String^ Database {
String^ get ();
void set (String^ value);
}
member Database : string with get, set
function get Database () : String
function set Database (value : String)
Property Value
Type: System.String
A String value that contains the database name. By default, the value is an empty string.
Examples
Backing Up and Restoring Databases and Transaction Logs
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace