| |

VerySource

 Forgot password?
 Register
Search
View: 784|Reply: 3

delphi transaction processing

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-12 16:30:01
| Show all posts |Read mode
How to write transaction processing in delphi, what is the syntax structure of transaction processing?

Soon after contact, everyone gave more opinions ~
Reply

Use magic Report

0

Threads

53

Posts

29.00

Credits

Newbie

Rank: 1

Credits
29.00

 China

Post time: 2020-6-8 09:15:01
| Show all posts
Delphi's database transaction processing is bound to ADOConnection1,

try
   ADOConnection1.BeginTrans;

   ...

   ADOConnection1.CommitTrans;
except
   ADOConnection1.RollbackTrans;
end;
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-6-12 06:00:01
| Show all posts
Only ADOConnection has transaction processing methods?
But I am not using adoconnection now, what should I do?
Reply

Use magic Report

0

Threads

9

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-6-29 11:30:01
| Show all posts
Many others are also ok!
That depends on what you use? It also depends on whether the database supports transactions!
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list