Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mrdaytrade
Engaged Sweeper III
I would like to run this report, but have it only show the results if a value is present in dbo.tblRegistry.Value


Select Distinct Top (1000000) dbo.tblComputers.Computer,
dbo.tblComputers.Description, dbo.tblComputers.Username, dbo.tblRegistry.Value
As [Search Box], dbo.tblRegistry.Lastchanged, dbo.tblComputers.LastknownIP
From dbo.tblRegistry Inner Join
dbo.tblComputers On dbo.tblComputers.Computername =
dbo.tblRegistry.Computername
Where
dbo.tblRegistry.Regkey Like
N'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters'


Thanks in advance.
1 REPLY 1
Hemoco
Lansweeper Alumni
Try this:
Select Distinct Top (1000000) dbo.tblComputers.Computer,
dbo.tblComputers.Description, dbo.tblComputers.Username, dbo.tblRegistry.Value
As [Search Box], dbo.tblRegistry.Lastchanged, dbo.tblComputers.LastknownIP
From dbo.tblRegistry Inner Join
dbo.tblComputers On dbo.tblComputers.Computername =
dbo.tblRegistry.Computername
Where (dbo.tblRegistry.Value <> '' And Not dbo.tblRegistry.Value Is Null) And
dbo.tblRegistry.Regkey Like
N'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters'

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