title: Can I reset cursor's position to the beginning?
body: <p>As in the topic. Can I simply reset cursor's position to the beginning in Transact-SQL, so it can run again over the table? I want to reset it in the following context:</p>
  
  <pre><code>DECLARE @userID INT
  DECLARE user_cursor CURSOR FOR SELECT userID FROM users
  
  WHILE /* some condition */
  BEGIN
  ...
  
      FETCH NEXT FROM user_cursor INTO @userID
  
      IF @@FETCH_STATUS = 0
      BEGIN
          /*... here goes the reset of the cursor ...*/
      END
  
  ...
  END
  </code></pre>