|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How connect to a database using java
I am new in Java and I am working on a project. I am faced with the following problems:
I have a window which prompts user to enter his identification code and a button to click. I do not know: - how to connect to the database(Access) - how send and get data from the database. I would be grateful if the answer to these questions is sent to m email box (edyko@yahoo.com) or to the forum. Thank you. |
|
#2
|
|||
|
|||
|
JDBC-ODBC bridge
In order to connect to access using Java, you will need to create an ODBC DataSourceName in windows that points to the database you want to connect to.
Find out more about that topic at Microsoft.com. Just search for ODBC datasource name. Once you have a DSN created, you will have to create a connection in the program using your DSN. You will most likely need to use a prepared statement to generate the SQL commands to perform some action on the DB (add records, delete records, create tables, etc). You can also find out the basics from Sun's website as well. They have a very well organized tutorial section. If you have any more questions, shoot me a PM or post them here. |
|
#3
|
|||
|
|||
|
thanks
alright.. thanks...
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > How connect to a database using java |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|