D
Dom
Several users can use my application at the same time, each one
working on a different laptop, of course. But there are sections of
the code that must be managed -- that is, I can't have two people
executing this code at the same time, but instead each user closes a
"gate" that keeps other users out, then opens the gate, allowing only
one in, who then closes the gate, and so on.
Usually I accomplish this by using a SQL Table, and a
ExecuteNonQueryTransaction and ExecuteNonQueryTransactionContinued
methods in the SqlClient namespace. This works perfectly, and I
believe I discovered this trick from this group.
But in my recent program, I can't use the SQL table. I don't want to
bother explaining why, since that isn't really relevant, but I for
various reasons I can't.
Is there another way to do the same thing?
working on a different laptop, of course. But there are sections of
the code that must be managed -- that is, I can't have two people
executing this code at the same time, but instead each user closes a
"gate" that keeps other users out, then opens the gate, allowing only
one in, who then closes the gate, and so on.
Usually I accomplish this by using a SQL Table, and a
ExecuteNonQueryTransaction and ExecuteNonQueryTransactionContinued
methods in the SqlClient namespace. This works perfectly, and I
believe I discovered this trick from this group.
But in my recent program, I can't use the SQL table. I don't want to
bother explaining why, since that isn't really relevant, but I for
various reasons I can't.
Is there another way to do the same thing?