When I to connect to a access databse with a jdbc-odbc bridge it connects fine and everything works out.But when I try to connect the same database from the servlet in my tomacat4.0 DriverManager.getConnection("jdbcdbcD","",""); is not working.Can anyone please help me.bye. [ December 19, 2002: Message edited by: Thomas Paul ]
add the username and password in the last 2 block of apostrophes coz ur exception is too general and usually this means somehting went wrong in ur sql statement or u might be using a null connection to try and set up a statement.....so many causes that can relate to this SQLException
Cobras9
Greenhorn
Joined: Dec 20, 2002
Posts: 3
posted
0
oh i think in tomcat , when u r getting a connection using DriverManager, u suppose to supplie an URL.....something like "jdbc:informix-sqli://%dbhost%:%portNum/dbname:INFORMIXSERVER=%dbserver%;user=XXXXX;password=XXXXX;" try this ....but u have to find out what u have to type in the url coz this is for Informix db
"Cobras9", The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp. We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements. Please change your display name soon, accounts with invalid display names get deleted Thanks. Dave