How can I restrict the number of logged-in users through the connection string at the same time to a specific number? like licencing application for 10 users only? I tried Max Pool Size
but they said that has a bad effect on app. performance, also I can't change it at the run time.
In another way, Let say we have an application running in our network, we need to restrict logged in user at the same time to only 5, So if the 6th one comes to log in the system not allow him
I appreciated your help.