title: Cannot ALTER SEQUENCE in SQL Server
body: <p>I'm having trouble using the <code>ALTER SEQUENCE</code> statement in SQL Server.</p>
  <p>This is the code I'm using:</p>
  <pre><code>ALTER SEQUENCE MakatiORSeries RESTART WITH 23;
  </code></pre>
  <p>And this is what I'm getting:</p>
  <blockquote>
  <p>Msg 15151, Level 16, State 1, Line 7<br />
  Cannot alter the sequence 'MakatiORSeries', because it does not exist or you do not have permission.</p>
  </blockquote>
  <p>But when I select all the sequences from <code>sys.sequences</code>, it is there</p>
  <pre><code>SELECT * 
  FROM sys.sequences 
  WHERE [name] = 'MakatiORSeries'
  </code></pre>
  <p>I tried these references too:</p>
  <p><a href="https://stackoverflow.com/questions/27135200/sql-server-sequence-set-current-value">SQL Server sequence set current value</a></p>
  <p><a href="https://stackoverflow.com/questions/23402859/use-a-variable-or-parameter-to-specify-restart-value-for-alter-sequence">Use a variable or parameter to specify restart value for ALTER SEQUENCE</a></p>
  <p>Any help is greatly appreciated. Thanks!</p>