Use Delphi to develop multi-layer applications (9) Use transactions to update data from multiple tables to the kbmmw Server

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.