Keshav Murthy Srinivas wrote:
Hi,
We have Registration form in our application developed using turbine 2.2, and on click of save button the data is getting saved in MS SQL database and a unique registration ID is generated in the code and saved in table and also displayed to the user. The table column in which this ID is stored is also the Primary Key column. However if the save button is clicked by multiple users at same time we are getting exception because of primary key violation. My question is how can we avoid getting this exception when multiple savings happen at same time? Regards,
  keshav

externalize and change the code which generate the code to a singleton
could be one of the many way to avoid the exception

Andrea Papotti


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to