sp_ps

sp_ps returns detailed status information on specified Open Server threads.

Syntax

server_name... sp_ps [loginame | ’spid’]

Parameters

Examples

Usage

  • The information reported by sp_ps may be useful for debugging during application development.

  • loginame and spid are character string parameters. When using isql to execute sp_ps as a remote procedure call from an Adaptive Server, surround the spid in quotes to avoid a syntax error.

  • If you do not specify loginame or spid, sp_ps lists all current threads.

Related reference
sp_who