Hi,
I have a table having composite primary key - 2 numeric columns and 1 varchar column . In my application, whenever i insert a row into a table,i check if the row exists in the table or not for the given primary key combination. If it exists i UPDATE the row, else insert.
But even after such checks, i am getting primary key vioaltion errors in bulk.
May be its due to the multithreaded java application which calls my stored proc.
But is there any chance that the varchar column in the composite primary key, is causing any problem.
Any ideas would be helpful.
Thanks a lot.
Subrat
I have a table having composite primary key - 2 numeric columns and 1 varchar column . In my application, whenever i insert a row into a table,i check if the row exists in the table or not for the given primary key combination. If it exists i UPDATE the row, else insert.
But even after such checks, i am getting primary key vioaltion errors in bulk.
May be its due to the multithreaded java application which calls my stored proc.
But is there any chance that the varchar column in the composite primary key, is causing any problem.
Any ideas would be helpful.
Thanks a lot.
Subrat
Comment