locked
ODBC driver manager connection error RRS feed

  • Question

  • I am getting this error. Connection Error: [Microsoft][ODBC Driver Manager] Invalid cursor state.

    My coding for the connection is :-
    package model;
    import java.sql.*;

    public class SQLConnection 
    {
    public static Connection getConnection() throws SQLException
    {
    DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());
    Connection conn=DriverManager.getConnection("jdbc:odbc:PRIME");
    return conn;
    }
    }

    Wednesday, February 3, 2010 4:47 AM