O.k. Maybe I was not specific enoughso here is the scenario:
I work for a small company that sells a piece of software that is backended on a SQL server. Currently, the software is sold on a per client basis. We would like to make the software licensed on a total concurrent user basis.
Currently, I open connection, do data stuff, close connection.
This obviousely would not work as the connections are only open for a few seconds at a time.
My plan is Open a connection
Count Currently open connections
return false if the Licenses are all filled up
Message the user that the licensed copies are in use
Close the Connection
-OR-
Return true if there is a connection available
Leave the connection open until application close
Will this Scenario Work?
tal