title: java servlets : duplicate key row in object with unique index 'XAK1timItem'
body: <p>I've written this java servlet which inserts items into a table however it fails.  I think it might be due to my insertion and deleting which got me in trouble some how. The java servlet  runs an insert statement into sql server. In my error log, it says: </p>
  
  <pre><code>com.microsoft.sqlserver.jdbc.sqlserverexception: cannot insert duplicate key row in object 'dbo.timitem' with unique index 'XAK1timitem'. 
  </code></pre>
  
  <p>any ideas?  </p>
  
  <p>UPDATE: i found there is an index called "XAK1timItem (Unique, Non-Clustered)"  which I'm not really sure what to do with..  hope this helps the question.</p>