The LogFile object exposes the attributes of an operating system file used to maintain transaction log records for a Microsoft® SQL Server™ database.
SQL Server logs transactions applied to a database. Transaction logs assist in recovering database integrity in the event of system failure. Transaction log records for a single database are maintained on one or more operating system files called log files.
With the LogFile object, you can:
The Name property of a LogFile object can contain up to 128 characters. The value of the Name property must be unique for all files, both log and data, used by a database.
To create an operating system file for transaction log records
FileGrowth Property | Name Property |
FileGrowthInKB Property | PhysicalName Property |
FileGrowthType Property | Size Property |
ID Property | SizeInKB Property |
MaximumSize Property |