这种,就必须在你的代码里面写。
比如在 BeforeConnectOuterDataSource 事件测试是否能连接,决定是否关闭
System.Diagnostics.Process.GetProcessesByName("Foxtable")(0).Kill