Condividi tramite


Classe LogFile

The LogFile object represents a SQL Server log file.

Spazio dei nomi:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class LogFile _
    Inherits DatabaseFile _
    Implements ICreatable
'Utilizzo
Dim instance As LogFile
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute]
public sealed class LogFile : DatabaseFile, 
    ICreatable
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[PhysicalFacetAttribute]
public ref class LogFile sealed : public DatabaseFile, 
    ICreatable
[<SealedAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<PhysicalFacetAttribute>]
type LogFile =  
    class
        inherit DatabaseFile
        interface ICreatable
    end
public final class LogFile extends DatabaseFile implements ICreatable

Osservazioni

To get the LogFile object properties, users can be a member of the public fixed server role.

To set LogFile object properties, users must have ALTER permission on the database or be a member of the db_owner fixed database role.

To create or drop a log file, users must have ALTER permission on the database or be a member of the db_owner fixed database role.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Thread Safety

Tutti i membri pubblici static (Shared in Visual Basic) di questo tipo sono thread safe. I membri di istanza non hanno garanzia di essere thread safe.