مشاركة عبر


ServerTraceEvent Class

The ServerTraceEvent object represents the SQL Server server trace events that can be included in a server trace event set.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.ServerTraceEvent

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

Syntax

'Declaration
Public NotInheritable Class ServerTraceEvent
'Usage
Dim instance As ServerTraceEvent
public sealed class ServerTraceEvent
public ref class ServerTraceEvent sealed
[<SealedAttribute>]
type ServerTraceEvent =  class end
public final class ServerTraceEvent

The ServerTraceEvent type exposes the following members.

Properties

  Name Description
Public propertyStatic member AssemblyLoad Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditAddDBUserEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditAddloginEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditAddLoginToServerRoleEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditAddMemberToDBRoleEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditAddRoleEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditAppRoleChangePasswordEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditBackupRestoreEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditChangeAuditEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditChangeDatabaseOwner Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditDatabaseManagementEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditDatabaseObjectAccessEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditDatabaseObjectGdrEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditDatabaseObjectManagementEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditDatabaseObjectTakeOwnershipEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditDatabaseOperationEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditDatabasePrincipalImpersonationEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditDatabasePrincipalManagementEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditDatabaseScopeGdrEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditDbccEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditFulltext Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditLogin Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditLoginChangePasswordEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditLoginChangePropertyEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditLoginFailed Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditLoginGdrEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditLogout Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditSchemaObjectAccessEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditSchemaObjectGdrEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditSchemaObjectManagementEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditSchemaObjectTakeOwnershipEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditServerAlterTraceEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditServerObjectGdrEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditServerObjectManagementEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditServerObjectTakeOwnershipEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditServerOperationEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditServerPrincipalImpersonationEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditServerPrincipalManagementEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member AuditServerScopeGdrEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member BitmapWarning Gets a server trace event that can be included in the event set.
Public propertyStatic member BlockedProcessReport Gets a server trace event that can be included in the event set.
Public propertyStatic member CpuThresholdExceeded Gets a server trace event that can be included in the event set.
Public propertyStatic member DatabaseMirroringStateChange Gets a server trace event that can be included in the event set.
Public propertyStatic member DatabaseSuspectDataPage Gets a server trace event that can be included in the event set.
Public propertyStatic member DataFileAutoGrow Gets a server trace event that can be included in the event set.
Public propertyStatic member DataFileAutoShrink Gets a server trace event that can be included in the event set.
Public propertyStatic member DeadlockGraph Gets a server trace event that can be included in the event set.
Public propertyStatic member DeprecationAnnouncement Gets a server trace event that can be included in the event set.
Public propertyStatic member DeprecationFinalSupport Gets a server trace event that can be included in the event set.
Public propertyStatic member Errorlog Gets a server trace event that can be included in the event set.
Public propertyStatic member Eventlog Gets a server trace event that can be included in the event set.
Public propertyStatic member Exception Gets a server trace event that can be included in the event set.
Public propertyStatic member ExchangeSpillEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member ExecutionWarnings Gets a server trace event that can be included in the event set.
Public propertyStatic member FtCrawlAborted Gets a server trace event that can be included in the event set.
Public propertyStatic member FtCrawlStarted Gets a server trace event that can be included in the event set.
Public propertyStatic member FtCrawlStopped Gets a server trace event that can be included in the event set.
Public propertyStatic member HashWarning Gets a server trace event that can be included in the event set.
Public propertyStatic member LockDeadlock Gets a server event that can be included in the event set.
Public propertyStatic member LockDeadlockChain Gets a server trace event that can be included in the event set.
Public propertyStatic member LockEscalation Gets a server trace event that can be included in the event set.
Public propertyStatic member LogFileAutoGrow Gets a server trace event that can be included in the event set.
Public propertyStatic member LogFileAutoShrink Gets a server trace event that can be included in the event set.
Public propertyStatic member MissingColumnStatistics Gets a server trace event that can be included in the event set.
Public propertyStatic member MissingJoinPredicate Gets a server trace event that can be included in the event set.
Public propertyStatic member MountTape Gets a server trace event that can be included in the event set.
Public propertyStatic member ObjectAltered Gets a server trace event that can be included in the event set.
Public propertyStatic member ObjectCreated Gets a server trace event that can be included in the event set.
Public propertyStatic member ObjectDeleted Gets a server trace event that can be included in the event set.
Public propertyStatic member OledbCallEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member OledbDatareadEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member OledbErrors Gets a server trace event that can be included in the event set.
Public propertyStatic member OledbProviderInformation Gets a server trace event that can be included in the event set.
Public propertyStatic member OledbQueryinterfaceEvent Gets a server trace event that can be included in the event set.
Public propertyStatic member Qn_dynamics Gets a server trace event that can be included in the event set.
Public propertyStatic member Qn_parameterTable Gets a server trace event that can be included in the event set.
Public propertyStatic member Qn_subscription Gets a server trace event that can be included in the event set.
Public propertyStatic member Qn_template Gets a server trace event that can be included in the event set.
Public propertyStatic member ServerMemoryChange Gets a server trace event that can be included in the event set.
Public propertyStatic member ShowplanAllForQueryCompile Gets a server trace event that can be included in the event set.
Public propertyStatic member ShowplanXml Gets a server trace event that can be included in the event set.
Public propertyStatic member ShowplanXmlForQueryCompile Gets a server trace event that can be included in the event set.
Public propertyStatic member ShowplanXmlStatisticsProfile Gets a server trace event that can be included in the event set.
Public propertyStatic member SortWarnings Gets a server trace event that can be included in the event set.
Public propertyStatic member SpCacheinsert Gets a server trace event that can be included in the event set.
Public propertyStatic member SpCachemiss Gets a server trace event that can be included in the event set.
Public propertyStatic member SpCacheremove Gets a server trace event that can be included in the event set.
Public propertyStatic member SpRecompile Gets a server trace event that can be included in the event set.
Public propertyStatic member SqlStmtrecompile Gets a server trace event that can be included in the event set.
Public propertyStatic member TraceAllEvents Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceClr Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceDatabase Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceDeprecation Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceErrorsAndWarnings Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceFileClose Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceFullText Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceLocks Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceObjects Gets a server trace event that can be included in the event set.
Public propertyStatic member TraceOledb Gets a server trace event category that can be included in the event set.
Public propertyStatic member TracePerformance Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceQueryNotifications Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceSecurityAudit Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceServer Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceStoredProcedures Gets a server trace event category that can be included in the event set.
Public propertyStatic member TraceTsql Gets a server trace event that can be included in the event set.
Public propertyStatic member TraceUserConfigurable Gets a server trace event category that can be included in the event set.
Public propertyStatic member Userconfigurable0 Gets a server trace event that can be included in the event set.
Public propertyStatic member Userconfigurable1 Gets a server trace event that can be included in the event set.
Public propertyStatic member Userconfigurable2 Gets a server trace event that can be included in the event set.
Public propertyStatic member Userconfigurable3 Gets a server trace event that can be included in the event set.
Public propertyStatic member Userconfigurable4 Gets a server trace event that can be included in the event set.
Public propertyStatic member Userconfigurable5 Gets a server trace event that can be included in the event set.
Public propertyStatic member Userconfigurable6 Gets a server trace event that can be included in the event set.
Public propertyStatic member Userconfigurable7 Gets a server trace event that can be included in the event set.
Public propertyStatic member Userconfigurable8 Gets a server trace event that can be included in the event set.
Public propertyStatic member Userconfigurable9 Gets a server trace event that can be included in the event set.
Public propertyStatic member UserErrorMessage Gets a server trace event that can be included in the event set.
Public propertyStatic member XqueryStaticType Gets a server trace event that can be included in the event set.

Top

Methods

  Name Description
Public methodStatic member Add Returns a server trace event set by adding two server trace events.
Public methodStatic member BitwiseOr Returns a new server trace event that includes both of the named Server Trace Events.
Public method Equals Determines whether the referenced server trace event object is equal to a specified object. (Overrides Object.Equals(Object).)
Public method GetHashCode Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Public method ToString Returns the referenced object in string format. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Addition Creates a server trace event set by performing an addition operation on two server trace event objects.
Public operatorStatic member BitwiseOr Creates a server trace event set by performing a bitwise OR operation on two ServerTraceEvent objects.
Public operatorStatic member Equality Creates a server trace event set by comparing two ServerTraceEvent objects.
Public operatorStatic member Implicit(ServerTraceEvent to ServerTraceEventSet) Converts a single server trace event to a server trace event set.
Public operatorStatic member Inequality Creates a server event set by comparing on two ServerTraceEvent objects.

Top

Remarks

The ServerTraceEvent object contains a property for each trace event to which the instance of SQL Server can respond. The actual set of trace events is specified using the ServerTraceEventSet object.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Examples

Handling SMO Events

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Handling SMO Events