Posted: Tue May 12, 2009 8:04 am Post subject: com.microsoft.sqlserver.jdbc.SQLServerException
Newbie
Joined: 30 Apr 2009 Posts: 6
Error Message:
Execution of Prepared Update Statement Failed : com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint Emp. Cannot insert duplicate key in object 'dbo.Emp'
Hi
Senario- I/pQ -->Compute Node--->O/P Q--->JDBC
we are trying to update a record in Emp table ...through jdbc adapter...the database is MySQL.....but every time when verb is Update it is given above error message .
We are using wrapper.
My question is why the adapter is trying to insert the record instead of update.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum