He has only mentioned that he wants to control the number of concurrent
users on his app, not on SQL Server, but I completely understand your point.
More information is needed. from the OP.
"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote in
message news:u8kX6e6OFHA.3788@tk2msftngp13.phx.gbl...[color=blue]
> Alex,
>
> This will not solve the problem, though. It's not about how many users
> are on the app, what matters is that they are all hitting the same data
> source at the same time. If you have operations that require more than
> one operation, then you need to wrap that in a transaction, so that the
> state of the app doesn't become corrupted (where another user can see only
> a part of a change that was made, and then acts upon it).
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> -
mvp@spam.guard.caspershouse.com
>
> "Alex Passos" <bz@netmerlin.nospam.com> wrote in message
> news:ekMF1b6OFHA.3156@TK2MSFTNGP15.phx.gbl...[color=green]
>> You can maintain statistical data about users logged in the system at
>> anyone time in the SQL Server database. When the app initializes the
>> first thing is to check that number against the maximum allowed, and if
>> more gracefully shutdown.
>>
>> User starts app: UPDATE UserStats set usercount=usercount+1;
>> User shutsdown app (after a successful start): UPDATE UserStats set
>> usercount=usercount-1;
>>
>> Alex
>>
>> "pnp" <pnp.@.softlab.ntua.gr> wrote in message
>> news:e4KSFT6OFHA.3156@TK2MSFTNGP15.phx.gbl...[color=darkred]
>>> Hi all,
>>> I've developed a win C# app that is actually database driven using SQL
>>> server 2000. The idea is that only one application will be installed on
>>> a server in a network and the program will be able to run at each client
>>> machine by just double-clicking the application executable through a
>>> network share. The program supports user logins.
>>> What I want to do is find a secure way to control the number of
>>> concurrent *users* using the application.
>>>
>>>
>>> Any suggestions?[/color]
>>
>>[/color]
>
>[/color]