on 08-16-2006 6:54 AM
Hi
'm trying to create a small webdynpro(using SAP netweaver studio) application that connects to SQL Server database.
This connection is through a JDBC connection.
and i wrote the code in the implementation of an iView.
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection cn=DriverManager.getConnection("jdbc:odbc:lms","sa","sa");
But a null pointer exception comes on 2nd statement-in connection statement.
But it works correctly in a java class created in webdynpro itself.
Then i tried to call that java class method , from my iView implemntation code.
But still null pointer exception ...
i hope this will be answered by any of you.
thanks
Smitha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You have to import the jar files
The port for MSSQL is 1433
You have to add the jar files in to your J2EE server by deploying it as library project.
See the help
http://help.sap.com/saphelp_nw2004s/helpdata/en/82/fdbf2085f65f43a71e755fc904478d/frameset.htm
See the Thread for library project
Kind Regards
Mukesh
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.