CLICK HERE TO EARN MONEY FREE

Monday, April 1, 2013

CONNECTING TO JAVA WITH DATABASE TABLE


 try {
         
     
           Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:tablename");

           system.out.println("db connected);
       
           }
        catch(Exception e )
        {
            out.println(e);
        }

0 comments:

Post a Comment

 

TEKONOLOGY Copyright © 2011 -- Template created by TEKONOLOGY -- Powered by Blogger