Configure JDBC in JAVA

64

By sepiroth

Here' how to configure JDBC (Java Database Connection)

JAVA can connect to most of the databases, all you have to do is to condigure and set the driver in ODBC... There are other way in connecting database usiong JAVA programs but here I used the ODBC connection which is in the Administrative Tools in Contol PAnel... visit JEDProject for more updates

-thanks to JEDI Training

Step 1: Hit START button, then go to SETTINGS, then CONTROL PANEL

Step 3: Open Data Sources(ODBC)

Step 4: at User DNS Click ADD, as shown on image

Step 2: Open ADMINISTRATIVE TOOLS

Step 5: in Create a New Data Source select a driver, In this tutorial I used MsAccess database. Select the Microsoft Access Driver(*.mdb)

Remember you can use any other database, just select the appropriate database driver from the list
Remember you can use any other database, just select the appropriate database driver from the list

Step 6: in Data Source Name just put the name of your database, and put some description as shown on label A, then click Select

You can input any name in Data Source Name, but Its good to input the same name of to your Database for consistency...
You can input any name in Data Source Name, but Its good to input the same name of to your Database for consistency...

Step 8: Check the ODBC Data Source Administrator, you will notice a new name of data source which is your database. Now you can retrieve it in your JAVA prog

Step 7: adter Clicking the Select, a dialog box appear to locate your database, click on Drives (label A), then select folder (label B), then select the databse

Comments

aLpE profile image

aLpE 4 years ago

.,can I ask??

why we need to configure this one??

I made I java program w/c will connect to a certain database then so far I didn't made the configuration above...!

although the program still run...

.,

may I know the purpose of thet configuratioin parikoy!!!

sepiroth profile image

sepiroth Hub Author 4 years ago

you need to configure it parikoy para maka connect ka sa database, It depends on database na gmiton nimo... There is a certain driver in every database you used... Maybe na configure na daan, thats y it works...

aLpE profile image

aLpE 4 years ago

.,ahHaah! ok,tnX s info..'

by d way parikoy..!

nah kay installer sa netbeans?..

I want to create progrms using it mn gd!

at this time, I am using jbuilder to make a java programs easier nd fster

although it hs only limted features thats why it mkes me bitin..,.'

I thnk about jst dwnlod netbeans nlang..

bt i'm hstate due to d reson of gtng sm vrus dring the proces...'

hpe you m'nd!!.,..

-tnx

sepiroth profile image

sepiroth Hub Author 4 years ago

just download it... www.sun.com.... your ram matters when you use netbeans, you should prefer to download the j2SE for beginners, at least 512 ram is needed...

Have Fun....

aLpE profile image

aLpE 4 years ago

.,tnx parekoy!

I am using it ryt now!!!

CLIPER profile image

CLIPER 4 years ago

Nice tutorial res. I'll track this in my blog.

CLIPER profile image

CLIPER 4 years ago

You can find the link here ries. http://cliper.boholcentral.com/cliper/page/JAVA-Tu

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    • No HTML is allowed in comments, but URLs will be hyperlinked
    • Comments are not for promoting your Hubs or other sites

    Please wait working