I need SQL Query for SMS Collection that will distinguish the
This shouldn't matter unless there are schema differences, but I am running
SMS 2003 SP1 and was able to make the query work. If you copied the query
from the first post here, you have to remove the > symbols. Here it is
copied and pasted directly from my SMS Admin console.
select
SMS_R_System.ResourceID,SMS_R_System.ResourceType, SMS_R_System.Name,SMS_R_Sy
stem.SMSUniqueIdentifier,SMS_R_System.ResourceDoma inORWorkgroup,SMS_R_System
..Client from SMS_R_System
where ResourceId not in
(select ResourceID
from SMS_R_System
where AgentName in ("MP_INVENTORY_MANAGER","Heartbeat Discovery","NT Logon
Discovery") and DATEDIFF(day,AgentTime,GetDate())<30)
and SMSUniqueIdentifier IS NOT NULL
|