Class CompatibilitySchema.File
- Namespace
- LinqToDB.Tools.DataProvider.SqlServer.Schemas
- Assembly
- linq2db.Tools.dll
sys.sysfiles (Transact-SQL)
Applies to: √ SQL Server (all supported versions)
Contains one row for each file in a database.
important
This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping System Tables to System Views (Transact-SQL). This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
See sys.sysfiles.
[Table(Schema = "sys", Name = "sysfiles", IsView = true)]
public class CompatibilitySchema.File
- Inheritance
-
CompatibilitySchema.File
- Extension Methods
Properties
FileID
File identification number unique for each database.
[Column("fileid")]
[Nullable]
public short? FileID { get; set; }
Property Value
FileName
Name of the physical device. This includes the full path of the file.
[Column("filename")]
[Nullable]
public string? FileName { get; set; }
Property Value
GroupID
File group identification number.
[Column("groupid")]
[Nullable]
public short? GroupID { get; set; }
Property Value
Growth
Growth size of the database. Can be either the number of pages or the percentage of file size, depending on value of status.
0 = No growth.
[Column("growth")]
[NotNull]
public int Growth { get; set; }
Property Value
MaxSize
Maximum file size, in 8-KB pages.
0 = No growth.
-1 = File will grow until the disk is full.
268435456 = Log file will grow to a maximum size of 2 TB.
Note: Databases that are upgraded with an unlimited log file size will report -1 for the maximum size of the log file.
[Column("maxsize")]
[NotNull]
public int MaxSize { get; set; }
Property Value
Name
Logical name of the file.
[Column("name")]
[NotNull]
public string Name { get; set; }
Property Value
Perf
Reserved.
[Column("perf")]
[Nullable]
public int? Perf { get; set; }
Property Value
- int?
Size
Size of the file, in 8-KB pages.
[Column("size")]
[NotNull]
public int Size { get; set; }
Property Value
Status
Status bits for the growth value in either megabytes (MB) or kilobytes (KB).
0x2 = Disk file.
0x40 = Log file.
0x100000 = Growth. This value is a percentage and not the number of pages.
[Column("status")]
[Nullable]
public int? Status { get; set; }
Property Value
- int?