Solved

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

Posted on 2013-01-29
1
1,280 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Transparency shows that a company is the kind of business that it wants people to think it is.
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 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

13 Experts available now in Live!

Get 1:1 Help Now