Click here to Skip to main content
15,893,381 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to send data from DB to all running application X's... Pin
Luc Pattyn14-Mar-11 13:43
sitebuilderLuc Pattyn14-Mar-11 13:43 
GeneralRe: How to send data from DB to all running application X's... Pin
Wendelius14-Mar-11 19:24
mentorWendelius14-Mar-11 19:24 
JokeRe: How to send data from DB to all running application X's... Pin
Sander Rossel14-Mar-11 21:15
professionalSander Rossel14-Mar-11 21:15 
GeneralRe: How to send data from DB to all running application X's... Pin
Wendelius14-Mar-11 19:23
mentorWendelius14-Mar-11 19:23 
AnswerRe: How to send data from DB to all running application X's... Pin
jschell15-Mar-11 7:59
jschell15-Mar-11 7:59 
GeneralRe: How to send data from DB to all running application X's... Pin
Sander Rossel15-Mar-11 8:21
professionalSander Rossel15-Mar-11 8:21 
GeneralRe: How to send data from DB to all running application X's... Pin
jschell16-Mar-11 8:21
jschell16-Mar-11 8:21 
AnswerRe: How to send data from DB to all running application X's... Pin
Klaus-Werner Konrad16-Mar-11 8:00
Klaus-Werner Konrad16-Mar-11 8:00 
If you use locking, that may block the system:

User starts to edit a record, then it's lunch-time and he leaves without saving the record

If you use a flag, that even may block the system:

User starts to edit a record, the flag is written to the special DB-Table, then his station went down (power failure etc.)

The only universal DB-way is - as others mentioned - to either have a 'version'-count or a 'last edited' timestamp, and if a user wants to edit a record, read that column and compare with the original value.
As long as a edited record isn't UPDATEd in the database, the DB-Server isn't (and shouldn't be) involved.

I use a mailslot for this purpose; every station listens to this, and if a record is about to be edited, the station in question sends a broadcast with the primary key of this record, so every station knows.
Also every station broadcasts a 'living' message every 5 seconds, and every station has a list of all other stations to maintain the 'living' state.
So if one station dies, all other stations will know 5 seconds later and can easily kill the 'editing' information of the died station.
With this the is even a in-application chat possible.

(Sorry for my bad english, I'm from germany and not so experienced using your lang...)
QuestionMySql connector and VS2010 SP1 Pin
Daniele Fusi14-Mar-11 4:59
Daniele Fusi14-Mar-11 4:59 
QuestionHow to create user 'sa' on Sql Server Pin
AmbiguousName12-Mar-11 4:25
AmbiguousName12-Mar-11 4:25 
AnswerRe: How to create user 'sa' on Sql Server [modified] Pin
Wendelius12-Mar-11 6:14
mentorWendelius12-Mar-11 6:14 
AnswerRe: How to create user 'sa' on Sql Server Pin
jschell13-Mar-11 10:19
jschell13-Mar-11 10:19 
QuestionConverting to a Relational Database [modified] Pin
Dominick Marciano11-Mar-11 17:26
professionalDominick Marciano11-Mar-11 17:26 
AnswerRe: Converting to a Relational Database Pin
Wendelius12-Mar-11 6:38
mentorWendelius12-Mar-11 6:38 
AnswerRe: Converting to a Relational Database Pin
jschell13-Mar-11 10:25
jschell13-Mar-11 10:25 
AnswerRe: Converting to a Relational Database Pin
Corporal Agarn14-Mar-11 4:26
professionalCorporal Agarn14-Mar-11 4:26 
QuestionTwo physcial servers with same Database name server Pin
vanikanc11-Mar-11 11:00
vanikanc11-Mar-11 11:00 
AnswerRe: Two physcial servers with same Database name server Pin
Wendelius11-Mar-11 11:47
mentorWendelius11-Mar-11 11:47 
QuestionParent-children Listing Pin
Ali Al Omairi(Abu AlHassan)11-Mar-11 8:16
professionalAli Al Omairi(Abu AlHassan)11-Mar-11 8:16 
AnswerRe: Parent-children Listing Pin
Chris Meech11-Mar-11 8:25
Chris Meech11-Mar-11 8:25 
GeneralRe: Parent-children Listing Pin
Ali Al Omairi(Abu AlHassan)11-Mar-11 8:45
professionalAli Al Omairi(Abu AlHassan)11-Mar-11 8:45 
GeneralRe: Parent-children Listing Pin
Chris Meech11-Mar-11 9:04
Chris Meech11-Mar-11 9:04 
GeneralRe: Parent-children Listing Pin
Ali Al Omairi(Abu AlHassan)11-Mar-11 9:09
professionalAli Al Omairi(Abu AlHassan)11-Mar-11 9:09 
GeneralRe: Parent-children Listing Pin
Chris Meech11-Mar-11 9:41
Chris Meech11-Mar-11 9:41 
AnswerRe: Parent-children Listing Pin
Wendelius11-Mar-11 9:16
mentorWendelius11-Mar-11 9:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.