SQL Server 事件类参考

适用于:SQL ServerAzure SQL 数据库Azure SQL 托管实例

SQL Server Profiler 可以记录 Microsoft SQL Server 数据库引擎 的实例中发生的事件。 记录的事件是跟踪定义中事件类的实例。 在 SQL Server Profiler中,事件类以及它们的事件类别位于 “跟踪文件属性” 对话框的 “事件选择” 选项卡中。

下表介绍了事件类别并列出了与它们相关的事件类。

事件类别 事件类
Broker 事件类别 包括由 Service Broker调用生成的事件类。 Broker:Activation 事件类

Broker:Connection 事件类

Broker:Conversation 事件类

Broker:Conversation Group 事件类

Broker:Corrupted Message 事件类

Broker:Forwarded Message Dropped 事件类

Broker:Forwarded Message Sent 事件类

Broker:Message Classify 事件类

Broker:Message Drop 事件类

Broker:Remote Message Ack 事件类
Cursors Event Category 包括由游标操作生成的事件类。 CursorClose 事件类

CursorExecute 事件类

CursorImplicitConversion 事件类

CursorOpen 事件类

CursorPrepare 事件类

CursorRecompile 事件类

CursorUnprepare 事件类
CLR 事件类别 包括由于执行 NET 公共语言运行时 (CLR) 对象而生成的事件类。 Assembly Load 事件类
Database Event Category 包括自动增大或收缩数据文件或日志文件时生成的事件类。 Data File Auto Grow 事件类

Data File Auto Shrink 事件类

Database Mirroring State Change 事件类

Log File Auto Grow 事件类

Log File Auto Shrink 事件类
Deprecation Event Category 包括与不推荐使用的情况相关的事件。 Deprecation Announcement 事件类

Deprecation Final Support 事件类
数据库引擎 (错误和警告事件类别) 包括返回SQL Server错误或警告时生成的事件类,例如,如果在编译存储过程期间出错或在SQL Server中发生异常。 Attention 事件类

Background Job Error 事件类

Blocked Process Report 事件类

CPU Threshold Exceeded 事件类

ErrorLog 事件类

EventLog 事件类

Exception 事件类

Exchange Spill 事件类

Execution Warnings 事件类

Hash Warning 事件类

Missing Column Statistics 事件类

Missing Join Predicate 事件类

Sort Warnings 事件类

User Error Message 事件类
Full Text 事件类别 包括启动、中断或停止全文搜索时生成的事件类。 FT:Crawl Aborted 事件类

FT:Crawl Started 事件类

FT:Crawl Stopped 事件类
Locks Event Category 包括在获取、取消、释放锁时或者在对锁执行一些其他操作时生成的事件类。 Deadlock Graph 事件类

Lock:Acquired 事件类

Lock:Cancel 事件类

Lock:Deadlock Chain 事件类

Lock:Deadlock 事件类

Lock:Escalation 事件类

Lock:Released 事件类

Lock:Timeout (timeout > 0) 事件类

Lock:Timeout 事件类
Objects Event Category 包括在创建、打开、关闭或删除数据库对象时生成的事件类。 Auto Stats 事件类

Object:Altered 事件类

Object:Created 事件类

Object:Deleted 事件类
OLEDB Event Category 包括由 OLE DB 调用生成的事件类。 OLEDB Call 事件类

OLEDB DataRead 事件类

OLEDB Errors 事件类

OLEDB Provider Information 事件类

OLEDB QueryInterface 事件类
Performance 事件类别 包括在执行 SQL 数据操作语言 (DML) 运算符时生成的事件类。 Degree of Parallelism (7.0 Insert) 事件类

Performance Statistics 事件类

Showplan All 事件类

Showplan All for Query Compile 事件类

Showplan Statistics Profile 事件类

Showplan Text 事件类

Showplan Text (Unencoded) 事件类

Showplan XML 事件类

Showplan XML For Query Compile 事件类

Showplan XML Statistics Profile 事件类

SQL:FullTextQuery 事件类
Progress Report 事件类别包括 Progress Report:Online Index Operation 事件类。 Progress Report:Online Index Operation 事件类
Scans Event Category 包括扫描表和索引时生成的事件类。 Scan:Started 事件类

Scan:Stopped 事件类
Security Audit 事件类别 包括用于审核服务器活动的事件类。 Audit Add DB User 事件类

Audit Add Login to Server Role 事件类

Audit Add Member to DB Role 事件类

Audit Add Role 事件类

Audit Addlogin 事件类

Audit App Role Change Password 事件类

审核备份和还原事件类

Audit Broker Conversation 事件类

Audit Broker Login 事件类

Audit Change Audit 事件类

Audit Change Database Owner 事件类

Audit Database Management 事件类

Audit Database Object Access 事件类

Audit Database Object GDR 事件类

Audit Database Object Management 事件类

Audit Database Object Take Ownership 事件类

Audit Database Operation 事件类

Audit Database Principal Impersonation 事件类

Audit Database Principal Management 事件类

Audit Database Scope GDR 事件类

Audit DBCC 事件类

Audit Login Change Password 事件类

Audit Login Change Property 事件类

Audit Login 事件类

Audit Login Failed 事件类

Audit Login GDR 事件类

Audit Logout 事件类

Audit Object Derived Permission 事件类

Audit Schema Object Access 事件类

Audit Schema Object GDR 事件类

Audit Schema Object Management 事件类

Audit Schema Object Take Ownership 事件类

Audit Server Alter Trace 事件类

Audit Server Object GDR 事件类

Audit Server Object Management 事件类

Audit Server Object Take Ownership 事件类

Audit Server Operation 事件类

Audit Server Principal Impersonation 事件类

Audit Server Principal Management 事件类

Audit Server Scope GDR 事件类

Audit Server Starts and Stops 事件类

Audit Statement Permission 事件类
Server Event Category 包含常规服务器事件。 Mount Tape 事件类

Server Memory Change 事件类

Trace File Close 事件类
Sessions 事件类别 包括客户端在连接或断开 SQL Server实例时生成的事件类。 ExistingConnection 事件类
Stored Procedures Event Category 包括执行存储过程时生成的事件类。 PreConnect:Completed 事件类

PreConnect:Starting 事件类

RPC:Completed 事件类

RPC Output Parameter 事件类

RPC:Starting 事件类

SP:CacheHit 事件类

SP:CacheInsert 事件类

SP:CacheMiss 事件类

SP:CacheRemove 事件类

SP:Completed 事件类

SP:Recompile 事件类

SP:Starting 事件类

SP:StmtCompleted 事件类

SP:StmtStarting 事件类
Transactions 事件类别 包括执行 Microsoft 分布式事务处理协调器事务时或写入事务日志时生成的事件类。 DTCTransaction 事件类

SQLTransaction 事件类

TM:Begin Tran Completed 事件类

TM:Begin Tran Starting 事件类

TM:Commit Tran Completed 事件类

TM:Commit Tran Starting 事件类

TM:Promote Tran Completed 事件类

TM:Promote Tran Starting 事件类

TM:Rollback Tran Completed 事件类

TM:Rollback Tran Starting 事件类

TM:Save Tran Completed 事件类

TM:Save Tran Starting 事件类

TransactionLog 事件类
TSQL 事件类别 包括执行从客户端传递到 SQL Server 实例的 Transact-SQL 语句时生成的事件类。 Exec Prepared SQL 事件类

Prepare SQL 事件类

SQL:BatchCompleted 事件类

SQL:BatchStarting 事件类

SQL:StmtCompleted 事件类

SQL:StmtRecompile 事件类

SQL:StmtStarting 事件类

Unprepare SQL 事件类

XQuery Static Type 事件类
User-Configurable 事件类别 包括你可以定义的事件类。 User-Configurable 事件类

另请参阅

SQL Server Profiler