Search notes:

SQL Server - sys.dm_exec_sql_text

sys.dm_exec_sql_text returns the text of an SQL batch, given its SQL handle.

Index