LogFile Constructor (Database, String, String)

 

Initializes a new instance of the LogFile class for the specified database and that has the specified name and physical file name.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public LogFile(
	Database database,
	string name,
	string fileName
)

Parameters

database
Type: Microsoft.SqlServer.Management.Smo.Database

A Database object value that specifies the database for which the transaction log is stored in the log file.

name
Type: System.String

A String value that specifies the name of the log file.

fileName
Type: System.String

A String value that specifies the physical file name of the log file.

Return to top
Show: