Hello all,
I have a parallel process updating a single table from various sources using update table statements using a key column.
I'm afraid the process will fail when an update will occur to a record with the same key simultaneously.
Does anyone have a suggestion how to accomplish this? Is there a way timing the updates in queue?
Thanks.
There is no concurrent update in SQL Server, DML statement are queued and executed one by one (if they are not in a transaction). There are sure scenarios which would lead to concurrency conflicts, but this has to be handled by your frontedn application.
HTH, Jens Suessmeyer.'
http://www.sqlserver2005.de
|||I assume you have multiple clients pumping data into a single table, right?
The next question is what you mean by key? Like an identity key? If so, that won't happen. SQL Server single threads identity key generation so that no two rows will get the same key.
No comments:
Post a Comment