SQLServerPSModule icon indicating copy to clipboard operation
SQLServerPSModule copied to clipboard

Read-SqlXEvent does not output [database_name] from XEL file

Open Lawrence-MB opened this issue 4 months ago • 0 comments

environment SqlServer PowerShell Module version: 22.4.5.1 OS: Microsoft Windows Server 2019 Standard OS Version: 10.0.17763 Build 17763 PS Version: 5.1.17763.7671

problem Read-SqlXEvent does not output [database_name] field from XEL files. The database_name field is confirmed existing and containing data. Reading the XEL file via MSSQL [sys.fn_xe_file_target_read_file] yields [database_name] column output.

replicate

  1. Read-SqlXEvent -FileName [path to file]
  2. Observe [database_name] output missing.

Lawrence-MB avatar Oct 03 '25 19:10 Lawrence-MB