Skip to content

Instantly share code, notes, and snippets.

@johnatandias
Created November 17, 2017 14:10
Show Gist options
  • Save johnatandias/64221f3b5d9cf7fa301df73dadcad5a4 to your computer and use it in GitHub Desktop.
Save johnatandias/64221f3b5d9cf7fa301df73dadcad5a4 to your computer and use it in GitHub Desktop.
Processos rodando no SQL Server
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