Im having a problem with the SQL Server 2005 JDBC Driver v1.1, when it throws a BatchUpdateException it is not setting the vendor-specific error code! It is always returning zero for the error code. The exception is being thrown due to a Unique key contraint. It should be throwing the error codes ( 2627 or 2601 ) which were thrown by the SQl Server 2000 driver.

Can anyone explain?