cancel
Showing results for 
Search instead for 
Did you mean: 

Access to DB2

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Following link will help you to find the appropriate driver

http://doc.optadata.com/en/dokumentation/application/database/hints/jdbc.html

Regards

Ayyapparaj

Answers (1)

Answers (1)

Former Member
0 Kudos

other drivers found..