on 09-18-2006 8:10 AM
hi... pls tell me how to create a JDBC driver that will enable me to connect SAP Netweaver to oracle database through JDBC.. pls give the sample code with syntax....
thank you
Hi
See this thread for connecting SQL Server
For Oracle
try
{DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@Oracle_server_ip:Oracle port:SID of the Database","user_name","password");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("your query");
}catch(Exception e){
}
see this thread
Kind Regards
Mukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.