View spesifik process wp_who Sql Server
[sql]
SELECT
spid
,sp.[status]
,loginame [Login]
,hostname
,blocked BlkBy
,sd.name DBName
,cmd Command
,dbo.spidprocess(spid) AS process
,cpu CPUTime
,physical_io DiskIO
,last_batch LastBatch
,program_name AS ProgramName
FROM master.dbo.sysprocesses sp
JOIN master.dbo.sysdatabases sd ON sp.dbid = sd.dbid
ORDER BY
spid
[/sql]
[sql]
SELECT
spid
,sp.[status]
,loginame [Login]
,hostname
,blocked BlkBy
,sd.name DBName
,cmd Command
,dbo.spidprocess(spid) AS process
,cpu CPUTime
,physical_io DiskIO
,last_batch LastBatch
,program_name AS ProgramName
FROM master.dbo.sysprocesses sp
JOIN master.dbo.sysdatabases sd ON sp.dbid = sd.dbid
ORDER BY
spid
[/sql]
Komentar
Posting Komentar