cjones464
Posts: 69
Score: 0 Joined: 7/23/2004 From: UK at the moment Status: offline
|
Sigh…. Now they tell me they only want results from one domain….. They have a single SMS covering 2 Domains. I’ve customised (with a little help from here) the “computers with a specific filename” report to replace the prompt with the specific file they have asked for. 7 filenames – 7 reports. Like so…. select SYS.Netbios_Name0, SF.FileName, SF.FileDescription, SF.FileVersion, SF.FileSize, SF.FileModifiedDate, SF.FilePath From v_GS_SoftwareFile SF join v_R_System SYS on SYS.ResourceID = SF.ResourceID Where (SF.FileName = "notes.exe") and (sys.netbios_name0 like "W%") ORDER BY SYS.Netbios_Name0 Now they tell me they only want results from one of the domains. I cant work out how to add a “where Domain = xyz” statement to these queries. Would anyone like to enlighten me ? I also need to restrict the default Report 25 “computers with low memory (less than or equal to specified MB) to doman xyz. Oh and yes I have asked the project to fund a “proper” SQL scripter LOL
|