The last time I showed how the client updated the changed data to the server, but in actual applications, it is often necessary to update several tables at the same time,
To ensure logical consistency, the operations on these tables are either successful or all fail, which requires transaction processing. Today
Let's talk about how to implement transaction processing in kbmmw. Also, by the way, the name query (named query) in kbmmw
First, we open the server and add a tkbmmwibdacquery to the data service,
Set its connctionpool to form1.kbmmwibdacconnectionpool1
The resolver is kbmmwibdacresolver1.
SQL is select * From BMB
Keyfieldsnames is bmid
Tablename is BMB
Published is true.
Finally, change the name to BMB. At the same time, set maxconnections of form1.kbmmwibdacconnectionpool1 to 5.
Okay. After the server is configured, You can compile and run it.
Open the client, add a tkbmmwclientquery, and set the corresponding parameters.