Solved

How to rollback transaction for MS-Access using SQL?

Posted on 1998-01-21
2
354 Views
Last Modified: 2013-12-03
I am using ODBC to interface with MS-Access.  My application manage to execute the SQL rollback command but it does not rollback the transaction.

Wherelse, I manage to rollback transaction from ORACLE which is using native mode.

Could it be something that I have to set in ODBC setup?
0
Comment
Question by:cwchaw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Expert Comment

by:faster
ID: 1410247
Does the ACCESS driver support roll back in the first place?
0
 
LVL 1

Accepted Solution

by:
yl earned 200 total points
ID: 1410248
In order to rollback a transaction you need the turn off the AutoCommit option for the connection you are using. You do this by the following Odbc API call:

SQLINTEGER iValue = SQL_AUTOCOMMIT_OFF;
SQLSetConnectAttr(hDbc, SQL_ATTR_AUTOCOMMIT, (void*) Value, NULL);
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
String manipulation in Visual Basic 7 90
Microsoft C++ code failing in executable that worked 9 144
PL SQL Developer 7 90
Trouble installing msi file with msiexe.exe 2 51
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question