accarvajal
asked on
JDBC error in SQLServer connection
Class.forName("com.microso ft.jdbc.sq lserver.SQ LServerDri ver");
m_BDConexion = DriverManager.getConnectio n("
com.microsoft.jdbc.sqlserv er.SQLServ erDriver") ;
...
I'm trying so execute some SQL instructions, but for commiting or rollbacking this instructions i'm using Transactions (savePoint), like this
try {
return m_BDConexion.setSavepoint( "transacci on");
} catch (SQLException e) {
}
when this instruction is executed, generates this error:
Exception occurred during event dispatching:
java.lang.AbstractMethodEr ror: com.microsoft.jdbc.sqlserv er.SQLServ erConnecti on.setSave point(Ljav a/lang/Str ing;)Ljava /sql/Savep oint;
at ...
What it could be?
thanks
m_BDConexion = DriverManager.getConnectio
com.microsoft.jdbc.sqlserv
...
I'm trying so execute some SQL instructions, but for commiting or rollbacking this instructions i'm using Transactions (savePoint), like this
try {
return m_BDConexion.setSavepoint(
} catch (SQLException e) {
}
when this instruction is executed, generates this error:
Exception occurred during event dispatching:
java.lang.AbstractMethodEr
at ...
What it could be?
thanks
which version of JDK you are using is it older than 1.4?
Your jdbc driver, com.microsoft.jdbc.sqlserv er.SQLServ erDriver, is not compatible with JDBC 3.0 (that comes with 1.4 and above).
You might want to look at: http://forum.java.sun.com/thread.jspa?threadID=223454&start=0&tstart=0
"Re: Microsoft SqlServer JDBC Driver" which suggest having a newer driver from http://www.datadirect-technologies.com/jdbc/connectjdbc/jpxconnectjdbc.asp
You might want to look at: http://forum.java.sun.com/thread.jspa?threadID=223454&start=0&tstart=0
"Re: Microsoft SqlServer JDBC Driver" which suggest having a newer driver from http://www.datadirect-technologies.com/jdbc/connectjdbc/jpxconnectjdbc.asp
In other words the feature You are trying to use is not implemented in the current driver version.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.