title: what is the best way to run Sql Agent job using C#?
body: <p>I am using Sql server 2005 and using C#/Asp.Net 4.0 for UI. 
  I want to trigger the sql job from an user action in a webpage. I need to keep checking job's status while its running. There are several old threads on this issue  which gets the status of the jobs (<a href="https://stackoverflow.com/questions/3757335/how-to-monitor-sql-server-agent-job-info-in-c-sharp">How to monitor SQL Server Agent Job info in C#</a>) but i need my program should be able to Run,Stop,Enable,Disable the jobs </p>
  
  <p>I need the below functionality in my UI.</p>
  
  <ol>
  <li><p>Check the status of a sql job</p></li>
  <li><p>Run the specified job</p></li>
  <li><p>Stop the job</p></li>
  <li><p>Disable/Enable the job</p></li>
  </ol>