jdbc connectivity
Posted by ~Ray @ 2007-11-17 15:52:56
unexceptional: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_command_ENV failed
I have made database of "microsoft ODBC for oracle"
i undergo written the following code:- public static Connection getConnection() throws SQLException,IOException{ // String createString = null;try { categorise forName("sun jdbc odbc. JdbcOdbcDriver"); } catch(ClassNotFoundException e){ System out println("Could not load driver"); } System out println("Initializing Connection To database"); try {con = DriverManager getConnection(url,userid password); System out println("connection made");} catch(SQLException ex) {System err println("SQLException: " + ex getMessage());}
stmt=con createStatement(); System out println("Loaded Driver");
Unless otherwise licensed code in all technical manuals herein (including articles. FAQs samples) is provided under this. [ADVERTHERE]Related article:
http://forum.java.sun.com/thread.jspa?threadID=5237564
0 Comments:
No comments have been posted yet!
|