title: Run stored procedure for each row of a table
body: <p>I have a table that look something like this</p>
  
  <pre><code>value_1  value_2  value_3
  ---------------------------
     1        2        3
     4        5        6
     7        8        9
     ...     ...     ...
  </code></pre>
  
  <p>and I need to run a stored procedure for every row of this table, something like</p>
  
  <pre><code>foreach value_1, value_2, value_3 from my_table
  exec spProcedure value_1, value_2, value_3
  </code></pre>
  
  <p>Is there a way to do this?</p>