Restrict Number of Concurrent Processes?

  • Hello,

    MSSQL 2000/SP3

    Is there a method or stored procedure that restricts the number of processes a particular user could use? For example, I would like to set a maximum number of times an account (web or NT) could concurrently connect to the database server or database.

    Many thanks. Jeff

  • I don't think SQL Server can restrict the number of sessions for a particular user. You can restrict the total user connections by setting the advanced option user Connections.

  • There isn't a way to limit by user, only by total connections.

  • thanks.

    Many thanks. Jeff

  • Jeff,

    You may try to use sysprocesses table which has UID, nt_username and loginame fields if your users are using your application to connect to SQL Server. Your application may query sysprocesses which also has a dbid field and decide if the user may create a connection based on if the process is sysprocesses already exist for the a particular Windows or SQL Server user in a particular database

    Yelena

    Regards,Yelena Varsha

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

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