sa_conn_activity system procedure

Returns the most recently-prepared SQL statement for each connection to the specified database on the server.

 Syntax
 Arguments
 Result set
 Remarks
 Permissions
 Side effects
 See also