Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make transactional Pass Through updates
Message
From
04/05/2005 20:01:40
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
04/05/2005 15:13:46
Charles Richard
Nvo Management Systems
Boisbriand, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01010984
Message ID:
01011112
Views:
16
Charles,

Here is what I do.
SQLSETPROP(this.nconnection,"Transactions",DB_TRANSMANUAL) && 2
** do your stuff here. 
lnRet = SQLCommit(this.nconnection)
if lnRet < 0
* report error.
sqlrollback(this.nconnection)
endif 
>Hello all
>
>I have code which posts a series SQLEXEC update and delete queries against
>an "Adaptive Server Anywhere 8.0" database via ODBC.
>
>Does anyone know how to make the series transactional, post them all on none? I.E. are there @@ BEGIN and @@COMMIT @@ROLLBACK type commands before and after or does this involve SQL PREPARE ???
>
>I am a bit foggy on these concepts and I need a quick solution for my client.
>
>TIA
>Charles Richard
Previous
Reply
Map
View

Click here to load this message in the networking platform