Limit count of user work with my DB (by C#)

  • Hi

    I have sql server DB and C# Application.

    How can I restricted count of user who use from my DB?

    How can I do this by c# or by SQL SERVER ?

    Thanks very much

  • armm1388 (5/15/2013)


    Hi

    I have sql server DB and C# Application.

    How can I restricted count of user who use from my DB?

    How can I do this by c# or by SQL SERVER ?

    Thanks very much

    It depends. Do you want to limit number of simultaneous user connections to the database regardless of who is the user and means of connecting to database? If so, read the following:

    http://msdn.microsoft.com/en-us/library/ms187030.aspx

    If you want limit number of your application users, then you will need to develop some custom control inside of your application. State (number of application users logged in to your application), could be stored in the database if needed.

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply