on 05-15-2008 2:15 PM
Hi,
I want to access a DB2-Database. I have written the folling code in the component controller:
Class.forName("com.sap.portals.jdbc.db2.DB2Driver");
Connection my_con = DriverManager.getConnection("xxx.xxx.xxx.xxx:xxxxx/DB", "username", "passwort");
Statement my_stmt = my_con.createStatement();
ResultSet my_result = my_stmt.executeQuery("SELECT * FROM MUSTERTABELLE");
If I deploy this, I get an Error: "com.sap.portals.jdbc.db2.DB2Driver".
I think, that it means, he can not found the class. What I have to import, so that he can find this class? Or how can I access to DB2?
Thanks,
Peter
Hi,
Following link will help you to find the appropriate driver
http://doc.optadata.com/en/dokumentation/application/database/hints/jdbc.html
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
other drivers found..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.