Re: Concurrency problems
From: Adam Machanic (amachanic_at_hotmail._removetoemail_.com)
Date: 12/17/04
- Next message: ChrisR: "Re: URGENT deadlock question"
- Previous message: David Portas: "Re: "SUM" of a varchar column?"
- In reply to: Leila: "Re: Concurrency problems"
- Next in thread: Leila: "Re: Concurrency problems"
- Reply: Leila: "Re: Concurrency problems"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 17 Dec 2004 14:34:24 -0500
"Leila" <Leilas@hotpop.com> wrote in message
news:efspn6G5EHA.2428@TK2MSFTNGP14.phx.gbl...
> Can this be a solution? suppose that:
> client A will attempt to delete the row. It finds out that the row has
been
> marked (client B is editing). It sends a message to B to get a
confirmation.
> If B confirms that it is editing the row, delete will fail unless it will
be
> successful.
> But I'm not sure that if COM or Notification Services can help for this
> communication.
> What is your idea?
> Thanks!
>
Again, I don't think the database should have any idea what the UI is
doing (so it shouldn't know that ClientB is editing). In my opinion, loose
coupling between databases and applications is very important. Giving the
database knowledge of what the UI is doing very tightly couples them.
-- Adam Machanic SQL Server MVP http://www.sqljunkies.com/weblog/amachanic --
- Next message: ChrisR: "Re: URGENT deadlock question"
- Previous message: David Portas: "Re: "SUM" of a varchar column?"
- In reply to: Leila: "Re: Concurrency problems"
- Next in thread: Leila: "Re: Concurrency problems"
- Reply: Leila: "Re: Concurrency problems"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|