How do I see active SQL Server connections?

2020-01-25 12:16发布

I am using SQL Server 2008 Enterprise. I want to see any active SQL Server connections, and the related information of all the connections, like from which IP address, connect to which database or something.

Are there existing commands to solve this issue?

8条回答
闹够了就滚
2楼-- · 2020-01-25 12:50

Apart from sp_who, you can also use the "undocumented" sp_who2 system stored procedure which gives you more detailed information. See Difference between sp_who and sp_who2.

查看更多
兄弟一词,经得起流年.
3楼-- · 2020-01-25 12:51

Click the "activity monitor" icon in the toolbar...

From Thorsten's comments:

In SQL Server Management Studio, right click on Server, choose "Activity Monitor" from context menu -or- use keyboard shortcut Ctrl + Alt + A.

查看更多
登录 后发表回答