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

SQL query to remove offline machines

$
0
0
I need a solution

Hi,

I'm currently trying to write a query in SQL to remove offline machines. I keep getting the redlines under SEM_AGENT or any other table. Does the below query look right? This is being done in a test environment and I have little to no expierence with SQL or scripting. Thank you for your help!

SELECT UPPER([SEM_AGENT]) as HOST_NAME
     ,case when comp.status=1 then 'ONLINE'
     else 'OFFLINE' end as Status

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>