title: The EXECUTE permission was denied on the object 'xp_sqlagent_is_starting', database 'mssqlsystemresource', schema 'sys'
body: <blockquote>
    <p>The EXECUTE permission was denied on the object
    'xp_sqlagent_is_starting', database 'mssqlsystemresource', schema
    'sys'.</p>
  </blockquote>
  
  <p>I get this error in my application. But when I run my program in visual studio it works fine. I am lost been stuck on this for days. </p>
  
  <p>It happens on every user. can anyone help.</p>
  
  <p>My program is written with visual basic, sql server 2012.</p>