Try to be more specific as to your problem. Are you:Originally posted by Sanjeev Shahi:
need urgent help!!!
I am trying to retreive data from SQL server in visaual J++. I've created new database project and in the explorer I can see the database and tables. The ques. is now what I've to do to display the records in the table? pls reply asap
thanks
ss
Originally posted by Sanjeev Shahi:
Jamie,
Thanks for your help I am totally new with jdbc.There is one more question now forget about visual j++. If I am trying the same thing through simple sdk by writting code in note pad.
For making connection to database there are 3 steps as follows.......
1.Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
2.Class.forName("jdbc.DriverXYZ");
3.Connection con = DriverManager.getConnection(url, "myLogin", "myPassword");
Now my ques is.........
1. do I need anything else that java sdk for jdbc connetion.
2. how to find driver. I am using SQL server. If there is no driver present then how to create one.
3. In step 3 which url it is asking and for user and pass it will be same as windows authentication
ss
Originally posted by Sanjeev Shahi:
...For making connection to database there are 3 steps as follows.......
1.Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
2.Class.forName("jdbc.DriverXYZ");
3.Connection con = DriverManager.getConnection(url, "myLogin", "myPassword");
Originally posted by Sanjeev Shahi:
jamie,
I tired the changes you told me to do but it is giving following error..........
ClassNotFoundException: jdbc.odbc.JdbcOdbcDriver
No suitable driver
ss