Solved

Cannot delete a query in sccm 2012 after sccm hanged while creating the query

Posted on 2013-01-29
1
1,264 Views
Last Modified: 2013-01-30
I was creating a query to find unhealthy client in SCCM 2012 but it would hang on me before the query creation completed and had to end task on config manager to bring the console back up.
Below is the query i was trying to add

select SMS_R_System.ResourceId. SMS_R_System.ResourceType.
SMS_R_System.Name. SMS_R_System.SMSUniqueIdentifier.
SMS_R_System.ResourceDomainORWorkgroup.
SMS_R_System.Client from SMS_R_System where
SMS_R_System.Client is null or SMS_R_System.Active is null

After launching the console i would see that the query i just created would appear under queries in the SCCM console but trying to run it would hang the console.

I tried to select the query and delete it through the console but it process the deleting but the query still appear under queries in sccm.

How can i delete this query?

I guess this could be done in SCCM SQL database but i am no DBA and do not know where to begin.
0
Comment
Question by:LealIT
1 Comment
 

Accepted Solution

by:
LealIT earned 0 total points
ID: 38834722
I found the solution by having a peek at the SCCM database in Sql server management studio.

Connected to the sccm database (CM_Sitecode),
>Expand tables
> then right click "dbo.queries" and edit the to 200 rows
>selected "unhealthy client" that i wanted to delete, then right click and then delete it.

That's it and when going back to sccm console the unwanted query is does not appear anymore.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
Not many admins are aware that GPOs can be activated and deactivated time-based. Time to change that :)
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now