Jade, OBDC and Java
Posted: Fri Aug 07, 2009 12:38 pm
by Michael Hill >> Mon, 30 Aug 2004 5:14:47 GMT
Afternoon,
Has anyone tried connecting to Greentree using ODBC and Java. I've tried connecting and I get this error:
Unable to add connection, cannot establish a connection to jdbc:odbc:Greentree using sun.jdbc.odbc.JdbcOdbcDriver ([Jade Software Corporation][JADE ODBC Driver] An unknown column attribute was requested)
The code I'm using is:
static ResultSet res;
static Connection conn;
static Statement stat;
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection("jdbc:odbc:Greentree");
System.out.println("Conn" + conn);
stat = conn.createStatement();
res = stat.executeQuery("Select * from Customer");
res.next();
}
catch(ClassNotFoundException cnfe)
{
System.out.println("ClassNotFound: " + cnfe.toString());
}
catch(SQLException sqle)
{
System.out.println("SQLException: " + sqle.toString());
}
}
Does anyone have any suggestions?
Cheers
Michael Hill
Ashburton Computer Associates
Afternoon,
Has anyone tried connecting to Greentree using ODBC and Java. I've tried connecting and I get this error:
Unable to add connection, cannot establish a connection to jdbc:odbc:Greentree using sun.jdbc.odbc.JdbcOdbcDriver ([Jade Software Corporation][JADE ODBC Driver] An unknown column attribute was requested)
The code I'm using is:
static ResultSet res;
static Connection conn;
static Statement stat;
/**
* @param args the command line arguments
*/
public static void main(String[] args)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection("jdbc:odbc:Greentree");
System.out.println("Conn" + conn);
stat = conn.createStatement();
res = stat.executeQuery("Select * from Customer");
res.next();
}
catch(ClassNotFoundException cnfe)
{
System.out.println("ClassNotFound: " + cnfe.toString());
}
catch(SQLException sqle)
{
System.out.println("SQLException: " + sqle.toString());
}
}
Does anyone have any suggestions?
Cheers
Michael Hill
Ashburton Computer Associates