title: Check background process from SQL Server
body: <p>I have a background process running, it can be seen in task Manager while its running. I need to check from my database, whether the process is running or not 
  I have tried the following query</p>
  
  <pre><code>select * from sys.dm_os_threads
  select * FROM sys.dm_os_tasks
  </code></pre>
  
  <p>But it doesnt show me all process running on the system</p>