Quantcast
Channel: Symantec Connect - Endpoint Protection - Discussions
Viewing all articles
Browse latest Browse all 10484

SQL Query - What am I missing?

$
0
0
I need a solution

Hi,

I'm currenlty writing a query that will delete offline machines from the Database.  I'm able to delete the offline machines but they still show up in SEPM. What am I missing? Another table? Yes, I know Symantec does not recommend changing with the database. I am doing this in test. Thanks!

delete from SEM_AGENT where exists (
select SEM_AGENT.COMPUTER_ID, SEM_COMPUTER.COMPUTER_NAME, SEM_AGENT.STATUS
from SEM_AGENT
left join SEM_COMPUTER on SEM_AGENT.COMPUTER_ID = SEM_COMPUTER.COMPUTER_ID
where sem_agent.STATUS = 1)
delete from SEM_CLIENT where exists (
select SEM_CLIENT.COMPUTER_ID,SEM_CLIENT.COMPUTER_NAME
from SEM_AGENT
left join SEM_COMPUTER on SEM_AGENT.COMPUTER_ID = SEM_COMPUTER.COMPUTER_ID
where sem_agent.STATUS = 1)
delete from SEM_COMPUTER where exists (
select SEM_COMPUTER.COMPUTER_ID,SEM_COMPUTER.COMPUTER_NAME
from SEM_AGENT
left join SEM_COMPUTER on SEM_AGENT.COMPUTER_ID = SEM_COMPUTER.COMPUTER_ID
where sem_agent.STATUS = 1)

0

Viewing all articles
Browse latest Browse all 10484

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>