Microsoft SQL Sample Code
Using the sp_who2 Function
The builtin sp_who2 function provides information about current users, sessions, and processes in an instance of the Microsoft SQL Server Database Engine. The information can be filtered to return only those processes that are not idle, that belong to a specific user, or that belong to a specific session. The code below will show you how to run the sp_who2 function.
If you need any help implementing this
sql or modifications made for your needs, please
Click Here to get a free
quote for your Microsoft
SQL Development needs.
Click Here to learn more
about the WSI quoting
process.