title: Sql Server Cursor error on 'for'
body: <p>here's the sql code I have for a cursor I need:</p>
  
  <pre><code>declare @myCursor cursor for
      SELECT item_one, item_2, lastUpdateTime, content_value FROM #MyTable;
  </code></pre>
  
  <p>I'm getting the error:</p>
  
  <p><code>Msg 156, Level 15, State 1, Line 44 Incorrect syntax near the keyword 'for'.</code></p>
  
  <p>What am I doing wrong?</p>
  
  <p>I'm using SQL Server 2008 R2.</p>