This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes jdbc with mysql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "jdbc with mysql" Watch "jdbc with mysql" New topic

jdbc with mysql

maheshm morem

Joined: Sep 23, 2010
Posts: 26
my jsp progrm does not work it gives me error as java.sql.SQLExcption[microsoft] [ODBC Driver Manager] invalid curser state. please help me
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32312

Can you show the code? The most common cause is not calling, but it could be something else.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Why are you getting an ODBC error? You should be using the MySQL Connector-J Driver (avaiolable on the MySQL website) and not the JDBC-ODBC bridge.
It is sorta covered in the JavaRanch Style Guide.
subject: jdbc with mysql
It's not a secret anymore!