You can run sp_who2 in SQL Server Management Studio or Query Analyzer to see all your current connections. This is SQL Server. I'm not sure which RDBMS you are using.
Also, take a look at your code and make sure you close the connection as soon as you no longer need it. Be anal in this!
Charles Graham
source share