Hi,
The code seems to be working. Well, here are the answers to your questions.
1) How to I change this to datasource?
A) You can create a datasource by clicking on startmenu -> run -> type odbcad32.exe
If you are having an existing datasource then simply change the bolded
word with the name of your datasource
connect=DriverManager.getConnection("
jdbcdbc:
MyDataSource","sa","");
2) Can someone interpret, what does this line means?
A) A result set contains the results of a SQL query. The results are kept in a set of rows, one of which is designated the current row. A row must be made current before data can be retrieved from it. The result set maintains a reference to the current row called the cursor.
The cursor is positioned before the first row when a result set is created. When a result set's next() method is called, the cursor moves to the first row of the result set and that row becomes the current row.
You can also specify the name of the column
"HELPING HANDS ARE BETTER THAN PRAYING LIPS........................."