How to force a SqlConnection to physically close, while using connection pooling?
问题 I understand that if I instantiate a SqlConnection object, I am really grabbing a connection from a connection pool. When I call Open(), it will open the connection. If I call the Close() or Dispose() method on that SqlConnection object, it is returned to the connection pool. However, that doesn't really tell me if it's really closed, or if I still have an active connection to the database. How can I force a SqlConnection to close at the network level, or at least tell when it closes? Example