‎10-31-2012 05:39 PM
SELECT TOP 1000000 tblcomputers.computername,
tblcomputers.computerunique,
web40osname.compimage AS icon,
web40osname.osname,
tblcomputers.sp AS
[Service Pack],
tblcompcustom.location,
tblcompcustom.department AS
[Research Unit],
tblcompcustom.custom1 AS [User Name],
tsyschassistypes.chassisname AS Type,
tblcompcustom.barcode AS
[Inventory Number],
CONVERT(VARCHAR(10), tblbios.releasedate, 20) AS ReleaseDate,
tblsystemenclosure.serialnumber,
tblsoftware.softwarename,
tblsoftware.softwareversion,
tblsoftware.softwarepublisher
FROM tblcomputers
LEFT OUTER JOIN web40processorcapacity
ON tblcomputers.computername =
web40processorcapacity.computername
INNER JOIN web40activecomputers
ON tblcomputers.computername = web40activecomputers.computername
LEFT JOIN web40correctmemory
ON web40correctmemory.computername = tblcomputers.computername
LEFT JOIN web40osname
ON web40osname.computername = tblcomputers.computername
LEFT JOIN tblcomputersystemproduct
ON tblcomputers.computername =
tblcomputersystemproduct.computername
LEFT JOIN tblcompcustom
ON tblcomputers.computername = tblcompcustom.computername
LEFT JOIN tblbios
ON tblcomputers.computername = tblbios.computername
LEFT JOIN tblsystemenclosure
ON tblcomputers.computername = tblsystemenclosure.computername
LEFT JOIN tsyschassistypes
ON tsyschassistypes.chassistype = tblsystemenclosure.chassistypes
INNER JOIN tblsoftware
ON tblcomputers.computername = tblsoftware.computername
WHERE tblsoftware.softwarepublisher NOT LIKE '%softwareX%'
ORDER BY dbo.tblcomputers.computername
Solved! Go to Solution.
‎10-31-2012 05:54 PM
Select Top 1000000 tblComputers.Computername, tblComputers.ComputerUnique,
tblComputers.Domain, tblComputers.Firstseen, tblComputers.Lastseen
From tblComputers
Where tblComputers.Computername Not In (Select tblSoftware.ComputerName
From tblSoftware Where tblSoftware.softwareName Like '%YourSoftware%')
Order By tblComputers.ComputerUnique
harringg wrote:
This report will show me them, but also includes all the other software installed, making the report unmanageable.
‎10-31-2012 10:48 PM
‎10-31-2012 09:31 PM
Select Top 1000000 tblComputers.Computer, tblSoftware.softwareName, tblSoftware.softwareVersion From tblComputers Inner Join tblSystemEnclosure On tblComputers.Computername = tblSystemEnclosure.Computername Inner Join tblSoftware On tblComputers.Computername = tblSoftware.ComputerName Where tblSoftware.softwareName Like 'Symantec Endpoint Encryption%' And tblSystemEnclosure.ChassisTypes = 10 Order By tblSoftware.softwareVersion
‎10-31-2012 10:26 PM
SELECT TOP 1000000 tblcomputers.computername,
tblcomputers.computerunique,
web40osname.osname,
tblCompCustom1.location,
tblCompCustom1.department AS [Research Unit],
tblCompCustom1.custom1 AS [User Name],
tblsystemenclosure.chassistypes
FROM tblcomputers
INNER JOIN tblcompcustom tblCompCustom1
ON tblcomputers.computername = tblCompCustom1.computername
INNER JOIN web40osname
ON web40osname.computername = tblCompCustom1.computername
INNER JOIN tblsystemenclosure
ON tblcomputers.computername = tblsystemenclosure.computername
WHERE tblcomputers.computername NOT IN (SELECT tblsoftware.computername
FROM tblsoftware
WHERE
tblsoftware.softwarename LIKE 'Symantec%')
AND tblsystemenclosure.chassistypes = 10
ORDER BY tblcomputers.computerunique
‎10-31-2012 05:54 PM
Select Top 1000000 tblComputers.Computername, tblComputers.ComputerUnique,
tblComputers.Domain, tblComputers.Firstseen, tblComputers.Lastseen
From tblComputers
Where tblComputers.Computername Not In (Select tblSoftware.ComputerName
From tblSoftware Where tblSoftware.softwareName Like '%YourSoftware%')
Order By tblComputers.ComputerUnique
harringg wrote:
This report will show me them, but also includes all the other software installed, making the report unmanageable.
‎10-31-2012 06:32 PM
SELECT TOP 1000000 tblcomputers.computername,
tblcomputers.computerunique,
web40osname.osname,
tblCompCustom1.location,
tblCompCustom1.department AS [Research Unit],
tblCompCustom1.custom1 AS [User Name]
FROM tblcomputers
INNER JOIN tblcompcustom tblCompCustom1
ON tblcomputers.computername = tblCompCustom1.computername
INNER JOIN web40osname
ON web40osname.computername = tblCompCustom1.computername
WHERE tblcomputers.computername NOT IN (SELECT tblsoftware.computername
FROM tblsoftware
WHERE (
tblsoftware.softwarename LIKE 'SoftwareX1%' )
OR (
tblsoftware.softwarename LIKE 'SoftwareX2%' ))
AND tblcomputers.domain LIKE '%MYDOMAIN%'
ORDER BY tblcomputers.computerunique
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now