BackupRestoreBase.DatabaseFiles Property
Applies To: SQL Server 2016 Preview
Gets the operating system files targeted by the backup or restore operation.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
public StringCollection DatabaseFiles { get; }
public:
property StringCollection^ DatabaseFiles {
StringCollection^ get();
}
member DatabaseFiles : StringCollection with get
Public ReadOnly Property DatabaseFiles As StringCollection
Property Value
Type: System.Collections.Specialized.StringCollection
A StringCollection system object value that lists the names of the targeted files. By default, the value is unspecified.
Remarks
The DatabaseFiles property is only required when the Action property is set to Files. When the Action property is set to Files, either the DatabaseFileGroups property or the DatabaseFiles property must be given a value to indicate which file groups or files to back up or restore.
Examples
Legacy Code Example
Backing Up and Restoring Databases and Transaction Logs
See Also
BackupRestoreBase Class
Microsoft.SqlServer.Management.Smo Namespace
RESTORE (Transact-SQL)
BACKUP (Transact-SQL)
Return to top