sp_who

Reports information on current users and processes on Microsoft SQL Server.

Note: This property is supported by ECDA Option for ODBC and ECDA Option for Oracle to Microsoft SQL data sources only.

Syntax

sp_who [ login_name | “spid” ]

Parameters

Usage

For each process being run, sp_who reports the server process ID, its status, the login name, the name of the host computer, the name of the database, and the command being run.

If no name is provided, sp_who reports on processes being run by all users.