Solved

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

Posted on 2013-01-29
1
1,362 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Learn how ViaSat reduced average response times for IT incidents from 10 minutes to 30 seconds.
Invest in your employees with these five simple steps to improve employee engagement and retention.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

738 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