如果Sybase能解决在断开数据库后,不需要重新SetTransObject,岂不是在桌面软件里,也可以实现偶连接?
If you change the DataWindow object associated with the DataWindow control (or DataStore) or if you disconnect and reconnect to a database, the connection between the DataWindow control (or DataStore) and the transaction object is severed. You must call SetTransObject again to reestablish the connect.
每次断开后,需要重新调用 SetTransObject,才能重新建立事务对象与数据窗口的联系,如果能在重新连接后,不需要重新调用SetTransObject,那岂不是C/S软件也可做成象B/S系统那样,实现偶连接?