Solved

How to rollback transaction for MS-Access using SQL?

Posted on 1998-01-21
2
347 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
error email attachment VB2010 5 32
Need example 5 107
String manipulation in Visual Basic 7 60
Using MS Code on my Mac 6 66
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now