Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 UPDATE/DELETE

Author  Topic 

programer
Posting Yak Master

221 Posts

Posted - 2010-08-08 : 10:05:39
I have an application open in two locations.
On one computer working secretary, and one director.

Both simultaneously modify the same record. First Secretary amended record
then Director.

How to inform the latter, which wants to save the record that the data were changed.


However, if the record is changed and someone in the organization of the record, write error.

programer
Posting Yak Master

221 Posts

Posted - 2010-08-08 : 10:06:11
quote:
Originally posted by programer

I have an application open in two locations.
On one computer working secretary, and one director.

Both simultaneously modify the same record. First Secretary amended record
then Director.

How to inform the latter, which wants to save the record that the data were changed.


Go to Top of Page

slimt_slimt
Aged Yak Warrior

746 Posts

Posted - 2010-08-08 : 10:11:51
read about raising errors: http://msdn.microsoft.com/en-us/library/ms178592.aspx

otherwise, you have deadlocks, sharedlocks, etc. for such cases. If someone is working (updating) a record, this record is locked for someone else to work on.
Go to Top of Page

programer
Posting Yak Master

221 Posts

Posted - 2010-08-08 : 10:27:22
quote:
Originally posted by programer

quote:
Originally posted by programer

I have an application open in two locations.
On one computer working secretary, and one director.

Both simultaneously modify the same record. First Secretary amended record
then Director.

How to inform the latter, which wants to save the record that the data were changed.




thanks

Go to Top of Page

slimt_slimt
Aged Yak Warrior

746 Posts

Posted - 2010-08-08 : 10:42:04
no problem
Go to Top of Page
   

- Advertisement -