title: SSMS Custom Keyboard Query Shortcut With(NoLock)
body: <p>I have a custom Keyboard Query Shortcut in SSMS (2008) with the following t-sql...</p>
  
  <pre><code>SELECT TOP(50) * FROM 
  </code></pre>
  
  <p>This allows me to simply type in a name of a table and press my keyboard shortcut to get the top fifty items from that table.  The problem I have is that I like to query using WITH(NOLOCK) so the records don't get locked.  I haven't figured out how to enter T-SQL into the Keyboard Query shortcut where the input is in the middle of the statement.  How can I incorporate a NoLock without resorting to using a stored procedure?</p>