ServerTraceEventSet-Klasse

The ServerTraceEventSet object represents a set server trace events.

Vererbungshierarchie

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo. . :: . .EventSetBase
    Microsoft.SqlServer.Management.Smo..::..ServerTraceEventSet

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

Syntax

'Declaration
Public NotInheritable Class ServerTraceEventSet _
    Inherits EventSetBase
'Usage
Dim instance As ServerTraceEventSet
public sealed class ServerTraceEventSet : EventSetBase
public ref class ServerTraceEventSet sealed : public EventSetBase
[<SealedAttribute>]
type ServerTraceEventSet =  
    class
        inherit EventSetBase
    end
public final class ServerTraceEventSet extends EventSetBase

Der ServerTraceEventSet-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode ServerTraceEventSet() () () () Initializes a new instance of the ServerTraceEventSet class.
Öffentliche Methode ServerTraceEventSet(ServerTraceEvent) Initializes a new instance of the ServerTraceEventSet class with a specified event.
Öffentliche Methode ServerTraceEventSet(array<ServerTraceEvent> [] () [] []) Initializes a new instance of the ServerTraceEventSet class with the specified set of events.
Öffentliche Methode ServerTraceEventSet(ServerTraceEventSet) Initializes a new instance of the ServerTraceEventSet class with the specified set of events.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft AssemblyLoad Gets or sets a boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft AuditAddDBUserEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft AuditAddloginEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a new login is added.
Öffentliche Eigenschaft AuditAddLoginToServerRoleEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a login is added to a server role.
Öffentliche Eigenschaft AuditAddMemberToDBRoleEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a new member is added to a database role.
Öffentliche Eigenschaft AuditAddRoleEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a new role is added.
Öffentliche Eigenschaft AuditAppRoleChangePasswordEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when the password for an application role is changed.
Öffentliche Eigenschaft AuditBackupRestoreEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a backup and restore operation is issued.
Öffentliche Eigenschaft AuditChangeAuditEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when audit trace modifications are made.
Öffentliche Eigenschaft AuditChangeDatabaseOwner Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when the database owner is changed.
Öffentliche Eigenschaft AuditDatabaseManagementEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database is created, altered, or dropped.
Öffentliche Eigenschaft AuditDatabaseObjectAccessEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database object is accessed, such as a schema.
Öffentliche Eigenschaft AuditDatabaseObjectGdrEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when grant, deny, or revoke operation is issued on a database object, such as a schema.
Öffentliche Eigenschaft AuditDatabaseObjectManagementEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database object is created, altered or dropped.
Öffentliche Eigenschaft AuditDatabaseObjectTakeOwnershipEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when ownership of an object in the database scope is changed.
Öffentliche Eigenschaft AuditDatabaseOperationEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a database operation occurs, such as a checkpoint.
Öffentliche Eigenschaft AuditDatabasePrincipalImpersonationEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when there is an impersonation within the scope of the database, such as a SETUSER or an EXECUTE AS USER.
Öffentliche Eigenschaft AuditDatabasePrincipalManagementEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a principal, such as users, are created, altered, or dropped from the database.
Öffentliche Eigenschaft AuditDatabaseScopeGdrEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a grant, deny, or revoke operation is issued within the scope of the database.
Öffentliche Eigenschaft AuditDbccEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when DBCC commands are issued.
Öffentliche Eigenschaft AuditFulltext Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft AuditLogin Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a user successfully logs on to Microsoft SQL Server.
Öffentliche Eigenschaft AuditLoginChangePasswordEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a SQL Server login password is changed.
Öffentliche Eigenschaft AuditLoginChangePropertyEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a login property, other than password, is changed.
Öffentliche Eigenschaft AuditLoginFailed Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an attempt to log in to SQL Server fails.
Öffentliche Eigenschaft AuditLoginGdrEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a grant, deny, or revoke operation is issued on a login object.
Öffentliche Eigenschaft AuditLogout Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a user successfully logs out of SQL Server.
Öffentliche Eigenschaft AuditSchemaObjectAccessEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an object permission, such as SELECT, is used both successfully or unsuccessfully.
Öffentliche Eigenschaft AuditSchemaObjectGdrEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an object grant, deny, or revoke operation is issued.
Öffentliche Eigenschaft AuditSchemaObjectManagementEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an object is created, altered or dropped.
Öffentliche Eigenschaft AuditSchemaObjectTakeOwnershipEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an ALTER AUTHORIZATION command is used to change the owner of an object.
Öffentliche Eigenschaft AuditServerAlterTraceEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a statement checks for the ALTER TRACE permission.
Öffentliche Eigenschaft AuditServerObjectGdrEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a grant, deny, or revoke operation is issued on a schema object, such as a table or a function.
Öffentliche Eigenschaft AuditServerObjectManagementEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a server objects are created, altered, or dropped.
Öffentliche Eigenschaft AuditServerObjectTakeOwnershipEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when the ownership is changed for objects within the scope of the server.
Öffentliche Eigenschaft AuditServerOperationEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when Security Audit operations such as altering settings, resources, external access, or authorization are used.
Öffentliche Eigenschaft AuditServerPrincipalImpersonationEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when there is an impersonation within scope of the server, such as EXECUTE AS LOGIN.
Öffentliche Eigenschaft AuditServerPrincipalManagementEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a server principals are created, altered, or dropped.
Öffentliche Eigenschaft AuditServerScopeGdrEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a grant, deny, or revoke operation for permissions is issued in the scope of the server, such as creating a login.
Öffentliche Eigenschaft BitmapWarning Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft BlockedProcessReport Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a process has been blocked for more than a specified amount of time.
Öffentliche Eigenschaft CpuThresholdExceeded Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft DatabaseMirroringStateChange Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when the state of a mirrored database changes.
Öffentliche Eigenschaft DatabaseSuspectDataPage Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft DataFileAutoGrow Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a data file is extended automatically by the server.
Öffentliche Eigenschaft DataFileAutoShrink Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a data file is reduced automatically by the server.
Öffentliche Eigenschaft DeadlockGraph Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an attempt to acquire a lock is canceled because the attempt was part of a deadlock and was chosen as the deadlock victim.
Öffentliche Eigenschaft DeprecationAnnouncement Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a feature is used that will be removed from a future version of SQL Server.
Öffentliche Eigenschaft DeprecationFinalSupport Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a feature is used that will be removed from the next major version of SQL Server.
Öffentliche Eigenschaft Errorlog Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when error events are logged in the SQL Server error log.
Öffentliche Eigenschaft Eventlog Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when error events are logged in the SQL Server application.
Öffentliche Eigenschaft Exception Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an exception occurs in SQL Server
Öffentliche Eigenschaft ExchangeSpillEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when communication buffers in a parallel query plan have been temporarily written to the tempdb database.
Öffentliche Eigenschaft ExecutionWarnings Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when warnings are issued during the execution of a SQL Server statement or stored procedure.
Öffentliche Eigenschaft FtCrawlAborted Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an exception is encountered during a full-text crawl.
Öffentliche Eigenschaft FtCrawlStarted Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a full-text crawl (population) starts.
Öffentliche Eigenschaft FtCrawlStopped Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a full-text crawl (population) starts.
Öffentliche Eigenschaft HashWarning Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a hashing operation that is not processing on a buffer partition has reverted to an alternate plan.
Öffentliche Eigenschaft LockDeadlock Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when two concurrent transactions have deadlocked each other by trying to obtain incompatible locks on resources that the other transaction owns.
Öffentliche Eigenschaft LockDeadlockChain Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs for each of the events leading up to a deadlock.
Öffentliche Eigenschaft LockEscalation Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a fine-grained lock has been converted to a coarse-grained lock (for example, a page lock escalated or converted to a table lock).
Öffentliche Eigenschaft LogFileAutoGrow Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a log file was extended automatically by the server.
Öffentliche Eigenschaft LogFileAutoShrink Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a log file was reduced automatically by the server.
Öffentliche Eigenschaft MissingColumnStatistics Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when column statistics that would be useful for the optimizer are not available.
Öffentliche Eigenschaft MissingJoinPredicate Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a query that has no join predicate is being executed.
Öffentliche Eigenschaft MountTape Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a request to mount a tape is received.
Öffentliche Eigenschaft NumberOfElements Gets the number of elements in the event set. (Überschreibt EventSetBase. . :: . .NumberOfElements.)
Öffentliche Eigenschaft ObjectAltered Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an object is altered.
Öffentliche Eigenschaft ObjectCreated Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an object is created.
Öffentliche Eigenschaft ObjectDeleted Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an object is deleted.
Öffentliche Eigenschaft OledbCallEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft OledbDatareadEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft OledbErrors Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an OLE DB error occurs.
Öffentliche Eigenschaft OledbProviderInformation Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft OledbQueryinterfaceEvent Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft Qn_dynamics Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft Qn_parameterTable Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft Qn_subscription Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft Qn_template Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft ServerMemoryChange Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when SQL Server memory usage has increased or decreased by either 1 MB or 5 percent of the maximum server memory, whichever is greater.
Öffentliche Eigenschaft ShowplanAllForQueryCompile Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an SQL statement compiles and displays complete, compile-time data.
Öffentliche Eigenschaft ShowplanXml Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft ShowplanXmlForQueryCompile Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an SQL statement executes and displays the complete, compile-time data.
Öffentliche Eigenschaft ShowplanXmlStatisticsProfile Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft SortWarnings Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a sort warning is generated.
Öffentliche Eigenschaft SpCacheinsert Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an item is inserted into the procedure cache.
Öffentliche Eigenschaft SpCachemiss Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a procedure is not found in the procedure cache.
Öffentliche Eigenschaft SpCacheremove Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when an item is removed from the procedure cache.
Öffentliche Eigenschaft SpRecompile Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs when a procedure is recompiled.
Öffentliche Eigenschaft SqlStmtrecompile Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Geschützte Eigenschaft Storage Gets or sets the bit array for event set storage. (Geerbt von EventSetBase.)
Öffentliche Eigenschaft TraceAllEvents Gets or sets a Boolean property value that specifies whether all events are included in the trace or not.
Öffentliche Eigenschaft TraceClr Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft TraceDatabase Gets or sets a Boolean property value that specifies whether the Database category events are recorded in the trace.
Öffentliche Eigenschaft TraceDeprecation Gets or sets a Boolean property value that specifies whether Deprecation category events are recorded in the trace.
Öffentliche Eigenschaft TraceErrorsAndWarnings Gets or sets a Boolean property value that specifies whether errors and warnings are recorded in the trace.
Öffentliche Eigenschaft TraceFileClose Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event occurs if a trace file closes when a transaction is rolled back.
Öffentliche Eigenschaft TraceFullText Gets or sets a Boolean property value that specifies whether Full Text category events are recorded in the trace.
Öffentliche Eigenschaft TraceLocks Gets or sets a Boolean property value that specifies whether Lock category events are recorded in the trace.
Öffentliche Eigenschaft TraceObjects Gets or sets a Boolean property value that specifies whether Object category events are recorded in the trace.
Öffentliche Eigenschaft TraceOledb Gets or sets a Boolean property value that specifies whether OLE DB category events are recorded in the trace.
Öffentliche Eigenschaft TracePerformance Gets or sets a Boolean property value that specifies whether Performance category events are recorded in the trace.
Öffentliche Eigenschaft TraceQueryNotifications Gets or sets a Boolean property value that specifies whether the event is included in the event set.
Öffentliche Eigenschaft TraceSecurityAudit Gets or sets a Boolean property value that specifies whether Security Audit category events are recorded in the trace.
Öffentliche Eigenschaft TraceServer Gets or sets a Boolean property value that specifies whether Server category events are recorded in the trace.
Öffentliche Eigenschaft TraceStoredProcedures Gets or sets a Boolean property value that specifies whether Stored Procedure category events are recorded in the trace.
Öffentliche Eigenschaft TraceTsql Gets or sets a Boolean property value that specifies whether Transact-SQL category events are recorded in the trace.
Öffentliche Eigenschaft TraceUserConfigurable Gets or sets a Boolean property value that specifies whether Lock category events are recorded in the trace.
Öffentliche Eigenschaft Userconfigurable0 Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event is configured by the user.
Öffentliche Eigenschaft Userconfigurable1 Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event is configured by the user.
Öffentliche Eigenschaft Userconfigurable2 Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event is configured by the user.
Öffentliche Eigenschaft Userconfigurable3 Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event is configured by the user.
Öffentliche Eigenschaft Userconfigurable4 Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event is configured by the user.
Öffentliche Eigenschaft Userconfigurable5 Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event is configured by the user.
Öffentliche Eigenschaft Userconfigurable6 Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event is configured by the user.
Öffentliche Eigenschaft Userconfigurable7 Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event is configured by the user.
Öffentliche Eigenschaft Userconfigurable8 Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event is configured by the user.
Öffentliche Eigenschaft Userconfigurable9 Gets or sets a Boolean property value that specifies whether the event is included in the event set. The event is configured by the user.
Öffentliche Eigenschaft UserErrorMessage Gets or sets a Boolean value that specifies whether the UserErrorMessage event is included in the event set.
Öffentliche Eigenschaft XqueryStaticType Gets or sets a Boolean property value that specifies whether the event is included in the event set.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Add(ServerTraceEvent) Returns a trace event set after adding a trace event to an existing event set.
Öffentliche MethodeStatisches Element Add(ServerTraceEventSet, ServerTraceEvent) Returns a trace event set after adding a trace event to an existing event set.
Öffentliche Methode Copy Returns a copy of the event set. (Überschreibt EventSetBase. . :: . .Copy() () () ().)
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Geschützte Methode FitsMask Specifies whether the EventSetBase object fits the specified mask. (Geerbt von EventSetBase.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode HasCommonBits Specifies whether the EventSetBase object has common bits with another specified EventSetBase object. (Geerbt von EventSetBase.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode Remove Removes an event from the event set.
Geschützte Methode SetValue Sets the bit value at the specified index position. (Geerbt von EventSetBase.)
Öffentliche MethodeStatisches Element Subtract Returns a trace event set after subtracting a trace event from an existing event set.
Öffentliche Methode ToString Returns a string that represents the ServerTraceEventSet object. (Überschreibt Object. . :: . .ToString() () () ().)

Zum Anfang

Operatoren

  Name Beschreibung
Öffentlicher OperatorStatisches Element Addition Creates a server trace event set by performing an addition operation on a ServerTraceEvent object and a ServerTraceEventSet object.
Öffentlicher OperatorStatisches Element Subtraction Creates a server trace event set by performing a subtraction operation on a ServerTraceEvent object and a ServerTraceEventSet object.

Zum Anfang

Hinweise

The ServerTraceEventSet object contains a property for each event to which the server trace responds. The events fall into categories, which are described in Ereignisklassen in SQL Server – Referenz. The ServerTraceEventSet class is used to define a set of events that can be traced by SQL Server Profiler or the SMO Trace objects.

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.