You can run sp_who to view active connections from the SQL server, but most likely you are not closing your connections as others suggested. However, if you close the connections, but immediately open them (for example, in a loop reading a text file or something like that), you can use them all, even if you think you close them (see Connection Pool ). If you post an example of your code, I think you will get a better answer.
source
share