?
Solved

JDBC error - Access -Operation invalid on setAutoCommit

Posted on 2000-02-26
2
Medium Priority
?
216 Views
Last Modified: 2012-05-04
I am using Access (jdbc-odbc bridge) and Oracle (Thin driver) to connect to these databases.

But, at one particular point in my application , when i do :

con.setAutoCommit(false);
where con is an Connection object.

I get the msg :
[Microsoft][ODBC Microsoft Access 97 Driver]Operation invalid at this time.

This happens only when i am connected to Access DB, not when i use Oracle DB connection.

Why is this so ?
0
Comment
Question by:Jitu
[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
 

Accepted Solution

by:
VAlain earned 50 total points
ID: 2561345
Hello,

As far as I know, Access 97, and especially its ODBC drivers, don't know about the concept of "Transactions". That's why the function call returns an error.
0
 
LVL 7

Expert Comment

by:Ravindra76
ID: 2567385

Why won't U ask it in database section?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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