TSQLTransaction: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | **TSQLTransaction**  is a non-visual component that intermediates between a database connection such as [[TSQLConnection]] and a [[TDataSet]]-derivative like a [[TSQLQuery]]. | |
| 2 | 2 | ||
| 3 | 3 | A TSQLTransaction is used to guard a series of queries such that either all of the queries are executed by a `Commit()` or none using `Rollback()`. | |
| 4 | 4 | ||
| 5 | - | ||
| 6 | - | ||
| 5 | + | ``` pascal | |
| 6 | + | SQLTransaction1.Database := SQLConnection1; | |
| 7 | + | SQLQuery1.Transaction := SQLTransaction1; | |
| 8 | + | ``` | |
| 7 | 9 | ||
| 8 | 10 | ## Freepascal Documentation | |
| 9 | 11 | ||
| 10 | 12 | - [TSQLTransaction doc](http://www.freepascal.org/docs-html/fcl/sqldb/tsqltransaction.html) | |
| 11 | 13 | - [[TDataSet]] | |
| 12 | 14 | ||
| 13 | 15 | --- | |
| 14 | 16 | *From the Free Pascal wiki, page "TSQLTransaction", as it stood on 2024-03-15 after a change by Ariben, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
