Topic
No replies
RuthraDeviG
RuthraDeviG
1 Post
ACCEPTED ANSWER

Pinned topic DB2 Connection

‏2014-02-03T08:40:40Z |

Can any one know how to connect db2 with work light(jquery) ?I tried with the following codes .but its showing errors.please help me to rectify this error .

 

 

  <script>
       Class.forName("com.ibm.db2.jcc.DB2Driver");
    Connection con=DriverManager.getConnection("jdbc:db2://localhost:10080/SAMPLE","db2admin","db2admin");
  PreparedStatement Stmt=con.prepareStatement("SELECT * from test");
out.println("Statement loaded sucessfuly");
</script>