on 12-03-2004 6:41 AM
Dear all,
I am trying to connect an external MSSQL Database in my custom iView. I know that it is necessary to make this through a JDBC. But is there any JDBC followed in the EP 5.0 and / or the PDK ?
Thanks
Sam
Sam,
sorry, I don't really understand your question.
First: Yes, it is definitely possible to connect to an external SQL server in your custom iViews. And: Yes, JDBC is the correct approach to do so. The producures for connecting are standard JDBC codings, no SAP specific things around here. You should easily find some jdbc tutorials on the web by googling for them.
Regards,
Dominik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Sam: Just put your jdbc driver library (jar file) into the iview library folder and use it.
Info about jdbc url you'll find probably in driver doc.
Regards,
Artur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Artur,
This is my code that try to make the connection:
////////////////////////////
Class.forName("classname");
<b>Connection</b> con = <b>DriverManager</b>.getConnection("jdbc:sap:sqlserver://msnt189:1433;DatabaseName=net_dev;SelectMethod=cursor", "sa", "pwd");
<b>Statement</b> std = con.createStatement();
<b>ResultSet</b> res = std.executeQuery("select * from usr_uom_master");
con.close();
///////////////////////////
When I typed the above code in eclipse, it can't recognize those bolded type. Which library do I need to import for this?
Besides, I still can't find the needed JDBC class to use.
Thank you very much
Sam
Message was edited by: Sam Choy
Message was edited by: Sam Choy
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.