sys.dm_exec_input_buffer in SQL Server 2016

Hands up: who of you at least once in your DBA career has used the DBCC INPUTBUFFER command to retrieve the last SQL statement that a specific session has submitted to SQL Server? Almost all of you! We all know that DBCC commands are little bit awkward, because you can’t call them in a T-SQL …

sys.dm_exec_input_buffer in SQL Server 2016 + read more