M
mike
I am trying to use JDBC to connect to an OpenOffice Database (hsqldb).
When I try to run a query I get an error that says "Table not found in
Statement [Select * from MemberInfo]. MemberInfo being the table. I
get the SQLException on a query, but I am not sure why. As far as I
know, my code is all correct. I have never done database connections,
so I am not really sure how to check if the Connection object is
actually hooked to the database. It doesn't throw any exceptions
though, until I try to run the query. When I make the connection I am
doing
conn =
DriverManager.getConnection("jdbc:hsqldb:/home/username/project/whatever.odb","sa","");
then I have this
ResultSet rs = conn.createStatement().executeQuery("SELECT * from
MemberInfo);
Any ideas?
ps) if needed I can post more code.
Mike
When I try to run a query I get an error that says "Table not found in
Statement [Select * from MemberInfo]. MemberInfo being the table. I
get the SQLException on a query, but I am not sure why. As far as I
know, my code is all correct. I have never done database connections,
so I am not really sure how to check if the Connection object is
actually hooked to the database. It doesn't throw any exceptions
though, until I try to run the query. When I make the connection I am
doing
conn =
DriverManager.getConnection("jdbc:hsqldb:/home/username/project/whatever.odb","sa","");
then I have this
ResultSet rs = conn.createStatement().executeQuery("SELECT * from
MemberInfo);
Any ideas?
ps) if needed I can post more code.
Mike