If you close a Connection object while there are open record sets associated with the connection, all of the open record sets will be closed and any pending changes will be canceled. If there is a transaction in progress when the connection is closed, a runtime error will occur.