Solved

SCCM 2007 - Query IsApproved

Posted on 2013-12-16
2
444 Views
Last Modified: 2013-12-18
I have created the SCCM 2007 Report below to show clients that have the Approved Status of NULL, however it is not working.  If the IsApproved = 1, it will display the NetBIOS Names.  If IsApproved = NULL or 2 or 3, none of the IsApproved statuses of NULL will appear.  Any thoughts of how I can make this work?


SELECT     TOP (100) PERCENT dbo.v_R_System.Netbios_Name0 AS [Computer Name], dbo.v_CM_RES_COLL_SMS00001.IsApproved
FROM         dbo.v_R_System INNER JOIN
                      dbo.v_CM_RES_COLL_SMS00001 ON dbo.v_CM_RES_COLL_SMS00001.ResourceID = dbo.v_R_System.ResourceID
WHERE     (dbo.v_CM_RES_COLL_SMS00001.IsApproved = NULL)
ORDER BY [Computer Name]
0
Comment
Question by:rmessing171
2 Comments
 
LVL 31

Accepted Solution

by:
merowinger earned 500 total points
ID: 39725926
try:


SELECT     TOP (100) PERCENT dbo.v_R_System.Netbios_Name0 AS [Computer Name], dbo.v_CM_RES_COLL_SMS00001.IsApproved
FROM         dbo.v_R_System INNER JOIN
                      dbo.v_CM_RES_COLL_SMS00001 ON dbo.v_CM_RES_COLL_SMS00001.ResourceID = dbo.v_R_System.ResourceID
WHERE     dbo.v_CM_RES_COLL_SMS00001.IsApproved is NULL
ORDER BY [Computer Name]
0
 

Author Comment

by:rmessing171
ID: 39727023
Thank you!  This worked like a charm!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to do SFTP in Windows to another server. 3 39
Automate Windows Updates with SCCM 2 87
rds question 5 40
Active Sync push Notifications do not push in a timely manner 8 35
Normally after a failure of Domain Controller, when promoting new DC the DC is renamed, we will discuss the options in Dcpromo to re-create the DC with the same name. Scenario: You are a small IT shop with two Domain Controllers (Domain Contr…
I was asked if I could set up a fax machine so that incoming faxes were delivered to people's Exchange inboxes and so that they could send faxes from their desktops without needing to print the document first.  I knew it was possible but I had no id…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question