title: Are there any way to programmatically execute a query with Include Actual Execution Plan and see whether any index suggestion or not
body: <p>I have a quite good number of queries and i want to test each of them with Include Actual Execution Plan feature on sql server management studio</p>
  
  <p>However it is not possible for me to do this manually for 1m + queries</p>
  
  <p>So i wonder can i execute them programmatically (from c#) with Include Actual Execution Plan feature and see whether SQL server suggests any index or not</p>
  
  <p><img src="https://i.stack.imgur.com/GLhz6.png" alt="enter image description here"></p>