The ReadFileList method returns a QueryResults object enumerating the Microsoft® SQL Server™ 2000 database files maintained on a backup media.
object.ReadFileList( Server ) as QueryResults
object
Expression that evaluates to an object in the Applies To list
Server
SQLServer object connected to an instance of SQL Server on which the backup device or operating system file is visible
HRESULT ReadFileList(
LPSQLDMOSERVER ServerObject,
LPSQLDMOQUERYRESULTS* ppResults);
A QueryResults object containing one result set defined by these columns.
Column | Data type | Description |
---|---|---|
LogicalName | nvarchar(130) | Logical name for the database file. |
PhysicalName | nvarchar(261) | Name of the operating system file implementing the database logical file. |
Type | nvarchar(25) | When D, the operating system file maintains data. When L, the operating system file maintains log records. |
FileGroupName | nvarchar(130) | Name of the filegroup to which the database file belongs. NULL for files maintaining log records. |
Size | numeric(20, 0) | Size, in bytes, of the operating system file at the time that the backup image was created. |
MaxSize | numeric(20, 0) | Maximum size, in bytes, that the operating system file can attain. |
When using the ReadFileList method, one of the Restore object device properties must indicate the device maintaining the backup media.
To use the ReadFileList method
When the media of a backup device is unused, such as when a disk device is empty, the ReadFileList method succeeds, returning an empty QueryResults object.