title: Dynamically select TOP rows in SQL Server
body: <p>How to select <code>TOP</code> rows dynamically? </p>
  
  <p>This code is not working:</p>
  
  <pre><code>Declare @Number int
  Set @Number= 6
  
  select Top @Number ID from tblEmployee 
  </code></pre>