Microsoft SQL Server Management Studio并真实的显示查询

bkhjykvo  于 2022-12-10  发布在  SQL Server
关注(0)|答案(1)|浏览(201)

两年前,一位SQLMaven打开了一个SSMS,并真实的显示了所有正在发生的查询。通过这种方式,他可以看到哪些SQL语句运行得很快,哪些语句运行起来需要一些时间。我记得这些查询显示在一个看起来像“CMD”的窗口中。我不记得新的查询是显示在窗口的顶部还是底部。
在过去的一个月里,我一直在试图弄清楚他是如何让这个工作的。我在监视器里到处找,但我找不到任何类似于他给我看的东西。
结果与“克莱莫ethminer窗口”相似...
有人能告诉我怎么弄到这个吗?

2j4z5cfb

2j4z5cfb1#

You can use sp_whoisactive to get the current running queries. It is very useful to see if currently there is blocking, locking, long running statements.
In order to get better picture of what was going on in the past, you can enable the Query Store . There are some predefined reports:

and various statistics and it is user friendly:

相关问题