04-13-05 12:58 PM
That's what the timestamp field is designed to do ... check for differences
in versions. But other than that, it is a solution. If it works for you it
seems reasonable.
Rob
--
MS MVP Commerce Server, MCSE, MCSA:Security, etc.
I'm speaking at SharePoint Advisor Live! June 12-16th. Goto
http://advisorevents.com/cmt0506p.nsf/w/main-cms for more details
"Obiwan Jacobi" <ObiwanJacobi@discussions.microsoft.com> wrote in message
news:32EDA0DA-2B83-4D75-A3FD-C8A09334FADB@microsoft.com...[vbcol=seagreen]
> But thats so stupid! Every website has this issue (people pressing F5 and
> issuing a second request for the same job)! -Oh sorry. No, you're
> workaround
> is not stupid ;-)
>
> The solution I'm currently working on involves a trigger on the OrderGroup
> table that increments an version_seqnr (bigint) for the order being
> updated
> after checking that the version_seqnr thats in the database is the same as
> the version_seqnr being passed in the update. It will Raise an error and
> rollback the transaction if these are not the same. Also after each save
> on
> our Order we bump the version_seqnr in memory too (saves a trip to the
> database). If the trigger raised an error this code will not be called.
>
> Any thoughts on this solution, Robert? I'm not a big fan of triggers but
> in
> this case it keeps the solution nicely transparent (except for that one
> code
> change in our Save method)...
>
> Thanx,
> Marc Jacobi
> Macaw Netherlands
>
> "Robert Bogue [MVP]" wrote:
>
[ Post a follow-up to this message ]
|