1. Batch insert in SQL Server with IDENTITY defined forum.hibernate.org
2. Batch update with SQL Server 2005 forum.hibernate.org
We've been testing our application in different databases (i.e. MySQL, PostgreSQL, DB2) and everything seems to be working fine until we tested it in SQL Server 2005. We're getting exceptions as attached below. This exception does not happen when disabling batch update by setting batch size to 0. i.e.