on 02-04-2008 10:01 AM
hi all,
i am doing application in webdynpro java with sql backend and my code is
Class.forNam("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://10.10.30.25:1433;databaseName=TrackingSystem","sa","sa") ;
Statement stmt = conn.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM [User Table]");
String un = wdContext.currentContextElement().getUsername();
and i am getting driver not found exception plz tell me the mistake
Hi,
You need to have the following files as part of your lib folder
Or else you need to register the JDBC drivers
msbase.jar
msutil.jar
mssqlserver.jar
This files are available from microsoft downloads site.
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ayyapparaj,
i added external jars and i created dsn also still i am getting exception
Thanks & Regards
vasavi
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.