Click here to Skip to main content
16,016,249 members
Home / Discussions / Database
   

Database

 
AnswerRe: disallow multiple connections for a login Pin
jschell27-Feb-12 8:32
jschell27-Feb-12 8:32 
GeneralRe: disallow multiple connections for a login Pin
Danzy8327-Feb-12 10:40
Danzy8327-Feb-12 10:40 
GeneralRe: disallow multiple connections for a login Pin
Mycroft Holmes27-Feb-12 12:06
professionalMycroft Holmes27-Feb-12 12:06 
GeneralRe: disallow multiple connections for a login Pin
jschell28-Feb-12 13:50
jschell28-Feb-12 13:50 
GeneralRe: disallow multiple connections for a login Pin
Danzy8329-Feb-12 2:18
Danzy8329-Feb-12 2:18 
GeneralRe: disallow multiple connections for a login Pin
jschell29-Feb-12 11:32
jschell29-Feb-12 11:32 
AnswerRe: disallow multiple connections for a login Pin
OChristiaanse29-Feb-12 20:34
OChristiaanse29-Feb-12 20:34 
AnswerRe: disallow multiple connections for a login Pin
foxyland7-Mar-12 17:54
foxyland7-Mar-12 17:54 
Hi Dan, I don't know what programming language you are using, but here is the logic. I'm sure you can apply it on any language;
1. Create a shared folder with read/write authorization for Everyone on the server.
2. In my apps, every user has their own GUID primary key on the database.
3. Suppose one user has a primary key 0D5FF2C1-9710-47EF-86FE-164E6170EEFD . Each time this user log in to the system, check if there is a text file named 0D5FF2C1-9710-47EF-86FE-164E6170EEFD.TXT in the shared folder on the server. If it doesn't exist, go to step (4). If it exists, try to delete it. If the deletion success, then continue to step (4). If the deletion fail, then other workstation is using this login ID is being used. You might want to show some message and redirect the program flow to the exit routine.
4. Create a text file named 0D5FF2C1-9710-47EF-86FE-164E6170EEFD.TXT on the server and keep it open while the apps is open (don't close the file handle).
5. Upon exit, close the TXT file handle and delete the text file.

By locking the handle, as long as the user is login, other client could not delete the file. If the initial client crash somehow, then the lock to the text file would be released by the server OS, thus, other workstation would be able to delete the text file (and login with the user id).

Others might have better solution. Yes, this is not a SQL solution. And might not be elegant enough for most programmers/system developer. But it works Smile | :)

hth,
foxyland

modified 8-Mar-12 4:13am.

Question[Solved]vb.Net front end, Access back end in Multi User App = bad idea? Pin
Richard.Berry10024-Feb-12 17:10
Richard.Berry10024-Feb-12 17:10 
AnswerRe: vb.Net front end, Access back end in Multi User App = bad idea? Pin
Jörgen Andersson24-Feb-12 22:48
professionalJörgen Andersson24-Feb-12 22:48 
AnswerRe: vb.Net front end, Access back end in Multi User App = bad idea? Pin
Mycroft Holmes24-Feb-12 23:30
professionalMycroft Holmes24-Feb-12 23:30 
AnswerRe: vb.Net front end, Access back end in Multi User App = bad idea? Pin
Luc Pattyn25-Feb-12 2:55
sitebuilderLuc Pattyn25-Feb-12 2:55 
AnswerRe: vb.Net front end, Access back end in Multi User App = bad idea? Pin
PIEBALDconsult25-Feb-12 4:05
mvePIEBALDconsult25-Feb-12 4:05 
AnswerRe: vb.Net front end, Access back end in Multi User App = bad idea? Pin
Dan Mos25-Feb-12 5:45
Dan Mos25-Feb-12 5:45 
AnswerRe: vb.Net front end, Access back end in Multi User App = bad idea? Pin
riced25-Feb-12 9:36
riced25-Feb-12 9:36 
QuestionMessage Closed Pin
23-Feb-12 6:23
craig trombly @ infobright23-Feb-12 6:23 
AnswerRe: Infobright and Analytics Pin
Eddy Vluggen23-Feb-12 7:00
professionalEddy Vluggen23-Feb-12 7:00 
GeneralRe: Infobright and Analytics Pin
craig trombly @ infobright23-Feb-12 7:02
craig trombly @ infobright23-Feb-12 7:02 
GeneralRe: Infobright and Analytics Pin
Chris Maunder23-Feb-12 16:45
cofounderChris Maunder23-Feb-12 16:45 
GeneralRe: Infobright and Analytics Pin
Shameel23-Feb-12 17:20
professionalShameel23-Feb-12 17:20 
AnswerRe: Infobright and Analytics PinPopular
R. Giskard Reventlov23-Feb-12 7:23
R. Giskard Reventlov23-Feb-12 7:23 
GeneralRe: Infobright and Analytics Pin
Dan Mos25-Feb-12 5:35
Dan Mos25-Feb-12 5:35 
QuestionGet Just The Latest Pin
GenJerDan23-Feb-12 3:46
GenJerDan23-Feb-12 3:46 
AnswerRe: Get Just The Latest Pin
Chris Meech23-Feb-12 4:35
Chris Meech23-Feb-12 4:35 
GeneralRe: Get Just The Latest Pin
GenJerDan23-Feb-12 4:45
GenJerDan23-Feb-12 4:45 

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.