Class.forName(“com.ibm.db2.jcc.DB2Driver”);
getConnection Connecton connecton=DriverManager.getConnection(“(“jdbc:db2://x.x.x.x:x/WT”, “x”);“x”, “x”);
PreparedStatement ps=connection.prepepareStatement(sql); // sql: //ja//java.Stringva.lang.String


Need Help..

Do you have this: "com.ibm.db2.jcc.DB2Driver" in the classpath ? Or the jar that contains it?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.