title: TABLOCK vs TABLOCKX
body: <p>What is the difference between <code>TABLOCK</code> and <code>TABLOCKX</code>?</p>
  <p><a href="http://msdn.microsoft.com/en-us/library/ms187373.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms187373.aspx</a> states that <code>TABLOCK</code> is a shared lock while <code>TABLOCKX</code> is an exclusive lock. Is the first maybe only an index lock of sorts? And what is the concept of sharing a lock?</p>