Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mrdaytrade
Engaged Sweeper III
This is what I have, but I would like to make a report of computers that are NOT running the smc.exe. What I have here reports back all the computers that have it running. New users here. great product. Thanks.

SELECT dbo.tblComputers.Computername, dbo.tblProcesses.Caption
FROM dbo.tblComputers INNER JOIN
dbo.tblProcesses ON dbo.tblComputers.Computername = dbo.tblProcesses.Computername
WHERE (dbo.tblProcesses.Caption = 'smc.exe')
2 REPLIES 2
Hemoco
Lansweeper Alumni
Try something like :


SELECT dbo.tblComputers.Computername
FROM dbo.tblComputers where computername not in (select computername from dbo.tblprocess WHERE (dbo.tblProcesses.Caption = 'smc.exe') )
mrdaytrade
Engaged Sweeper III
Excellent! Just had to fix a minor typo. Thank you very much.

SELECT dbo.tblComputers.Computername
FROM dbo.tblComputers where computername not in (select computername from dbo.tblprocesses WHERE (dbo.tblProcesses.Caption = 'smc.exe'))

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now