扩展事件提供表值函数 (TVF),供扩展事件用户界面 (UI) 内部使用。 表本身不提供客户可以使用的数据。
若要查看事件数据,请使用以下项之一:
扩展事件的新会话 UI。
fn_xe_file_target_read_file TVF。 有关详细信息,请参阅 sys.fn_xe_file_target_read_file (Transact-SQL)。
语法
sys.fn_MSxe_read_event_stream ( session_name)
参数
- Session_name
服务器上运行的会话的名称。
返回的表
列名 |
数据类型 |
说明 |
---|---|---|
type |
Integer (4) |
事件类型。 不可为 Null。 |
data |
Image (16) |
事件图像数据。 可以为 Null。 |