Created
November 17, 2017 14:10
-
-
Save johnatandias/64221f3b5d9cf7fa301df73dadcad5a4 to your computer and use it in GitHub Desktop.
Processos rodando no SQL Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT Processo = spid, | |
| Computador = hostname, | |
| Usuario = loginame, | |
| Status = status, | |
| BloqueadoPor = blocked, | |
| TipoComando = cmd, | |
| Aplicativo = program_name | |
| FROM | |
| master..sysprocesses | |
| WHERE | |
| status in ('runnable', 'suspended') | |
| ORDER BY | |
| blocked desc, status, spid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment