This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The EnumProcesses method returns a QueryResults object that enumerates the Microsoft SQL Server processes running on a referenced instance of Microsoft SQL Server.
A QueryResults object that contains one result set defined by these columns.
When nonnull, process ID blocking a request of the process ID listed by the row.
Abbreviated indicator of current command. AWAITING COMMAND when no command is current.
Cumulative CPU time for process.
Database currently in use by process.
If applicable, network name of the client workstation.
Name of the SQL Server login.
Number of pages in the procedure cache currently allocated to this process. A negative number indicates that the process is freeing memory allocated by another process.
If applicable, name of the client application.
SQL Server process ID.
Execution state, such as running or sleeping.
Execution context ID used to uniquely identify the subthreads operating on behalf of a single process. If the computer is running an instance of SQL Server 7.0 or earlier, a value of zero is returned.