Solved

SCCM 2007 - Query IsApproved

Posted on 2013-12-16
2
436 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server Update Query Streamline 4 29
Active Directory Failed Logon Attempts. 18 54
Admin account lockout 10 39
Dell PowerEdge 2950 crashing on a weekly basis 5 37
I have been working as System Administrators since 2003. I recently started working as a FreeLancer and was amazed to find out that very few people are taking full advantage of their Windows Server Machines. Microsoft Windows Server comes with so…
We recently had an issue where out of nowhere, end users started indicating that their logins to our terminal server were just showing a "blank screen." After checking the usual suspects -- profiles, shell=explorer.exe in the registry, userinit.exe,…
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 install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

773 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