🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.dbexpress
Article #169

Re: What hard is find info...

#169
From: Bob Swart
Date: Mon, 03 Sep 2007 14:25
22 lines
1798 bytes
Hi juanma,

> For the people that need transactions this work (how many try and error!!)

Note that your code shows the pre-DBX4 way (the deprecated way) of using 
transactions in dbExpress...

Prior to DBX4, we had to call the StartTransaction, Commit, and RollBack 
methods of TSQConnection. However, these methods are now deprecated, and 
we should now use the new (DBX4) methods called BeginTransaction, 
CommitFreeAndNil, and RollBackFreeAndNil of the TSQLConnection component 
instead of the deprecated methods.

And you need to use DBXCommon and SqlExpr now instead of the dbExpress unit.

Groetjes,
           Bob Swart

-- 
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
CodeGear Technology Partner -- CodeGear RAD Studio Reseller (BeNeLux)
Blog: http://www.drbob42.com/blog - RSS: http://eBob42.com/weblog.xml
Technical Details
Message-ID: <46DC1977.3050509@BobSwart.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46dc125a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: fb4e2,38bfd6ce5e95b55c
X-Google-Attributes: gidfb4e2,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <46DC1977.3050509@BobSwart.com>
Date: Mon, 03 Sep 2007 16:25:59 +0200
From: Bob Swart <Bob@BobSwart.com>
Organization: Bob Swart Training & Consultancy (eBob42)
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.dbexpress
Subject: Re: What hard is find info...
References: <46dc125a@newsgroups.borland.com>
In-Reply-To: <46dc125a@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 89.220.93.5
X-Trace: newsgroups.borland.com 1188829628 89.220.93.5 (3 Sep 2007 07:27:08 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail