'Invalid object name 'sys.dm_exec_input_buffer'

I'm trying to start a script in SQL Server 2014, but it can't find the object in question.

This is the query I am trying to initiate:

SELECT * FROM sys.dm_exec_input_buffer(@@SPID, NULL);

Error message:

Msg 208, Level 16, State 1, Line 1
Invalid object name 'sys.dm_exec_input_buffer'.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source