问题
I am using ODBC to link some tables to a MySQL database hosted remotely. It's not a very good host, so it fails quite often. When this happens, it will hang Access (version 2003) for about 20 minutes, and then finally come up with an error (3146), saying that the connection unexpectedly closed. The only way I can get out of it is by End Tasking access. This can be frustrating, especially if I just wrote some code that wasn't saved yet. Is there a way to cancel the odbc operation, perhaps by stopping some sort of service?
来源:https://stackoverflow.com/questions/18830122/cancelling-odbc-operation-when-taking-too-long