Re: How notice user, that this record has change by another user?

From: Sahil Malik (contactmethrumyblog_at_nospam.com)
Date: 10/16/04


Date: Sat, 16 Oct 2004 01:23:36 -0400

Welcome to "Concurrency Management"

The below situation can be rectified by doing two things

a) Updating only the columns that you changed.
b) Checking the value of each column before doing the update. i.e. If A's
value used to be 1, then at update check and see if the value is still 1 and
update it to the new value (say 2) only if this test passes.

You can do the above by looking at various versions of values in your
dataset.

- Sahil Malik
You can reach me thru my blog http://www.dotnetjunkies.com/weblog/sahilmalik

"mttc" <s@hotmail.com> wrote in message news:416f8159$1@news.012.net.il...
> Under ADO.NET and SQL 2000
>
> I build form that edit data, and i use with wizard to create Update query.
>
>
> What happen in this situation?:
>
>
> I read record into DataSet. The user 1 change value an field A in the
> record.
>
> Meanwhile, user 2 change and commit the same record in field B.
>
> Now the first user makes commit.
>
>
> I suppose that field B is become again as original value!
>
>
> If it is correct, what method I got to resolve this problem?
>
> How notice user, that this record has change by another user?
>
>
>
>



Relevant Pages

  • Re: dts package and t log
    ... INSERTING and UPDATING is not necessarily committed straight away. ... Default DTS says "Only commit the rows after the last one has gone through". ... Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP) www.SQLDTS.com - The site for all your DTS needs. ...
    (microsoft.public.sqlserver.dts)
  • Re: [PATCH] x86: trim ram need to check if mtrr is there v3
    ... commit 6a4544a9c8b54b82893044cb53695502cc386f00 ... trim memory by updating e820 v3 ... yeah, i guess what i've pushed out just now is v3++. ...
    (Linux-Kernel)
  • Re: netgraph only on i386/ia64 - why ?
    ... I'll do the commit to -current today.. ... UPDATING (user utilitiesw will need recompile) ...
    (freebsd-net)
  • Re: Rasiel - Keys to Seattle
    ... it's taken a while because wifi spots are not very common these here ... i will commit to updating the journals at least once a week and ...
    (rec.bicycles.rides)