Click here to Skip to main content
15,903,175 members
Home / Discussions / Database
   

Database

 
GeneralRe: Using mySQL Pin
perlmunger29-May-03 13:53
perlmunger29-May-03 13:53 
GeneralRe: Using mySQL Pin
Jean-Marc Molina29-May-03 13:54
Jean-Marc Molina29-May-03 13:54 
GeneralRe: Using mySQL Pin
Joshua Nussbaum30-Apr-03 7:57
Joshua Nussbaum30-Apr-03 7:57 
Generalconnectionstrings Pin
Hesham Amin21-Apr-03 23:07
Hesham Amin21-Apr-03 23:07 
GeneralUpdating SQL Row Data Pin
gollnick20-Apr-03 4:33
gollnick20-Apr-03 4:33 
GeneralGet Auto-Increment columns from Access using OleDb Pin
krisp19-Apr-03 13:43
krisp19-Apr-03 13:43 
QuestionODBC driver and MSAccess, what's wrong? Pin
Konstantin S. Diguine18-Apr-03 1:59
Konstantin S. Diguine18-Apr-03 1:59 
GeneralApplication is still running or a crash occured Pin
ovidiu_pon17-Apr-03 22:08
ovidiu_pon17-Apr-03 22:08 
Hello,

Application
-----------
I've created a multi-tier application. Its architecture is:
On client machine --> the client application is an ActiveX EXE component (VBasic).
On server machine --> some COM+ server applications and a SQLServer database.


Use Case
--------
CLIENT1
--> asks SQLServer database for an object (= a row in objects table).
The state of this object is stored in a storage file.
--> if the object can be check out, it means nobody else have checked out the object,
the server will set the objects.checkedoutby = ClientID and will copy the stg file
in a shared folder on server machine.
CLIENT2
--> tries to check out the same object
--> the server must know (??? - MY QUESTION IS ABOUT THIS POINT) if the CLIENT1 application
is still running or a crash has occured and CLIENT1 was not able to check in the object.

Remarks
-------
1) CLIENT2 will receive a copy of the storage file if CLIENT1 is still running
2) CLIENT2 will have the possibility to restore the storage file from
an older version if a crash occured in the CLIENT1 application.
3) Many clients can log in using the same account (user name and password)
4) There can be more than one instances of the application on the same client machine

My solution
-----------
My solution is to create an instance of an "watchdog" ActiveX EXE on the client machine
when the client application is started. This "watchdog", from time to time (5 minutes by example),
will modify the value of a date field named NotificationDate in database.
When the client application shuts down, the "watchdog" will stop updating that field.
The stored procedure responsible for check out will use the value of NotificationDate field
to decide whether the CLIENT1 application that use this object is still running or a crash has occured.

Questions
---------
1) Is there a pattern for this problem?
2) What about my solution?

10x,
Ovidiu
GeneralRe: Application is still running or a crash occured Pin
andyharman18-Apr-03 4:21
professionalandyharman18-Apr-03 4:21 
GeneralRe: Application is still running or a crash occured Pin
ovidiu_pon20-Apr-03 20:51
ovidiu_pon20-Apr-03 20:51 
Generalstored procedure problem Pin
AlphaS17-Apr-03 12:36
AlphaS17-Apr-03 12:36 
GeneralRe: stored procedure problem Pin
Rein Hillmann17-Apr-03 13:49
Rein Hillmann17-Apr-03 13:49 
GeneralRe: stored procedure problem Pin
AlphaS18-Apr-03 10:35
AlphaS18-Apr-03 10:35 
GeneralRe: stored procedure problem Pin
Rein Hillmann18-Apr-03 13:25
Rein Hillmann18-Apr-03 13:25 
GeneralRe: stored procedure problem Pin
AlphaS18-Apr-03 21:03
AlphaS18-Apr-03 21:03 
GeneralMSDE server performance question Pin
Member 9617-Apr-03 7:27
Member 9617-Apr-03 7:27 
GeneralRe: MSDE server performance question Pin
Mark Smithson17-Apr-03 8:22
Mark Smithson17-Apr-03 8:22 
GeneralRe: MSDE server performance question Pin
Member 9617-Apr-03 8:51
Member 9617-Apr-03 8:51 
GeneralRe: MSDE server performance question Pin
andyharman18-Apr-03 4:07
professionalandyharman18-Apr-03 4:07 
GeneralRe: MSDE server performance question Pin
Member 9619-Apr-03 18:08
Member 9619-Apr-03 18:08 
QuestionSQL Server Insert and trigger question? Pin
Bart-Man17-Apr-03 4:57
Bart-Man17-Apr-03 4:57 
AnswerRe: SQL Server Insert and trigger question? Pin
Chris Meech17-Apr-03 7:47
Chris Meech17-Apr-03 7:47 
GeneralRe: SQL Server Insert and trigger question? Pin
Bart-Man17-Apr-03 9:48
Bart-Man17-Apr-03 9:48 
GeneralRe: SQL Server Insert and trigger question? Pin
Chris Meech17-Apr-03 10:06
Chris Meech17-Apr-03 10:06 
GeneralRe: SQL Server Insert and trigger question? Pin
Bart-Man17-Apr-03 10:43
Bart-Man17-Apr-03 10:43 

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.