Extended events, abbreviated as XEvents, is a built-in auditing and monitoring functionality available via SQL Server Management Studio GUI or SQL scripts. You can set up and configure it to capture pretty much anything that happens on SQL Server. It’s quite flexible and fairly easy to set up.
Extended events was intended as a replacement for Profiler , which was supposed to be deprecated in some future SQL Server version. Profiler is a way to create a trace that can capture everything ...