I have an application which uses SqlConnection.ClearAllPools
to close all connections before dropping a database.
There is a case where a connection is still there. This connection had been created in another application domain.
So I wonder which connections are closed by SqlConnection.ClearAllPools
?
- Only the connections opened by the calling process (or AppDomain)?
- All the connections opened by this machine?
- ...?