[begin code]
USE your_site_database_name
GO
SELECT DISTINCT
a.netbios_name0 COMPUTER_NAME,
CASE
WHEN PATINDEX('%.%',b.fileversion) = 3 THEN
SUBSTRING(b.fileversion,1,2)
WHEN PATINDEX('%.%',b.fileversion) = 2 THEN
SUBSTRING(b.fileversion,1,1)
ELSE SUBSTRING(b.fileversion,1,1)
END AS IEX
FROM
dbo.v_R_System a LEFT OUTER JOIN
dbo.v_GS_SoftwareFile b ON a.ResourceID=b.ResourceID
WHERE
filename LIKE 'iexplore.exe' AND Active0=1
AND
LTRIM(fileversion) <> ''
ORDER BY COMPUTER_NAME
[end code]
Namaste!
No comments:
Post a Comment