Applies To: SQL Server 2014, SQL Server 2016 Preview
Returns a row for all common language runtime (CLR) tasks that are currently running. A Transact-SQL batch that contains a reference to a CLR routine creates a separate task for execution of all the managed code in that batch. Multiple statements in the batch that require managed code execution use the same CLR task. The CLR task is responsible for maintaining objects and state pertaining to managed code execution, as well as the transitions between the instance of SQL Server and the common language runtime.
Applies to: SQL Server (SQL Server 2008 through current version), SQL Database V12.
Address of the CLR task.
Address of the underlying Transact-SQL batch task.
Address of the application domain in which this task is running.
Current state of the task.
State the abort is currently in (if the task was canceled) There are multiple states involved while aborting tasks.
Affinity of the task.
Number of times the task was forced to yield.
On SQL Server requires VIEW SERVER STATE permission on the server.
On SQL Database Premium Tiers requires the VIEW DATABASE STATE permission in the database. On SQL Database Standard and Basic Tiers requires the SQL Database admin account.