Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > I need SQL Query for SMS Collection that will distinguish the
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 6th August 14:16
magnus1¨ºÇb±Ë¬²*²hœ®‹(~×(
External User
 
Posts: 1
Default I need SQL Query for SMS Collection that will distinguish the



I can't get the query to work. Get "Syntax error".
  Reply With Quote


  sponsored links


2 6th August 14:16
sangeetha visweswaran [msft]
External User
 
Posts: 1
Default I need SQL Query for SMS Collection that will distinguish the



This is a WQL query and not a SQL query. So you have to run in wbemtest to
test the results and not in SQL.

--
Hope this helps!
Sangee

P.S:Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.

"This posting is provided AS IS with no warranties and confers no rights."
  Reply With Quote
3 6th August 14:16
magnus1¨ºÇb±Ë¬²*²hœ®‹(~×(
External User
 
Posts: 1
Default I need SQL Query for SMS Collection that will distinguish the


I tried putting it in a query and collection in SMS.
  Reply With Quote
4 6th August 14:16
shawn stewart
External User
 
Posts: 1
Default 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
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666