R
R Reyes
Hi,
I'm having an issue in my C#.NET desktop application where two or more
people viewing/editing the same record (from SQL Server) keep overwriting
each others changes.
Is there a setting in SQL Server (or some other easy way) to make it so that
only the first user may update the record and any subsequent users get a
"read-only" version of the record, similar to how it works with Microsoft
Office word and excel documents?
What I was thinking was programming the "Save" button to add a JobInUse=1,
JobID=Some Job ID to the database and then have all users read that table to
see if they can edit the record, however some times people do not close their
programs/computers down properly... If that happened, the record would never
get updated with JobInUse=0 to show they are done working with it so I fear
this solution may not work.
Does anyone have any good solutions for this? Please help and thanks in
advance!
R
I'm having an issue in my C#.NET desktop application where two or more
people viewing/editing the same record (from SQL Server) keep overwriting
each others changes.
Is there a setting in SQL Server (or some other easy way) to make it so that
only the first user may update the record and any subsequent users get a
"read-only" version of the record, similar to how it works with Microsoft
Office word and excel documents?
What I was thinking was programming the "Save" button to add a JobInUse=1,
JobID=Some Job ID to the database and then have all users read that table to
see if they can edit the record, however some times people do not close their
programs/computers down properly... If that happened, the record would never
get updated with JobInUse=0 to show they are done working with it so I fear
this solution may not work.
Does anyone have any good solutions for this? Please help and thanks in
advance!
R