Skip to content

Instantly share code, notes, and snippets.

View behnam-io's full-sized avatar
🎯
Focusing

Behnam Aboutalebi behnam-io

🎯
Focusing
View GitHub Profile
@behnam-io
behnam-io / CaptureTSQLEvents_XE_Buffer.sql
Created December 5, 2021 12:14 — forked from EitanBlumin/CaptureTSQLEvents_XE_Buffer.sql
Collect T-SQL Events using an Extended Events Buffer
-- Author: Eitan Blumin (t: @EitanBlumin | b: eitanblumin.com)
-- Date: 2020-05-31
-- Last Update: 2021-04-22
-- Description: Collect T-SQL Events using an Extended Events Buffer
SET NOCOUNT ON;
DECLARE
@SourceLinkedServer SYSNAME
, @MinimumDurationMilliSeconds BIGINT