title: Any way to get the column causing a com.microsoft.sqlserver.jdbc.SQLServerException: String or binary data would be truncated
body: <p>We have a webapp that uses hibernate to persist data to a sql server 2005 instance. </p>
  
  <p>On occasional we get a <code>com.microsoft.sqlserver.jdbc.SQLServerException: String or binary data would be truncated.</code> </p>
  
  <p>While we can get the insert query, and then compare by hand to the column definition in the database to see which column is too small, this is slow and error prone. Is there a way to automatically get the Table/Column that has the problem from this exception?</p>
  
  <p>I've looked around Google and SO for a solution, so I'll understand if the answer is "no, you cannot get that information", but I figured it didn't hurt to ask.</p>