Friday, February 4, 2011

Creating a JavaDB with Netbeans

I am starting to put my hands on Java. Its quite amazing to see how Java connects to databases. Almost the same for all cases(tried Oracle,JavaDB). Just puting the code here to get in future.


Lets first start with creating and connecting to a JavaDB using netbeans.


db2.png


first go to the services tab.


Expand the Database entry.


right click the JavaDB and click start server.


Right click again the JavaDB to create a new Database. The database create wizard shall appear.


db4.png


Just type in the fields as indicated to continue this tutorial. the password is also "app".


connect to the newly created database. (right click and connect).


db7.png


Expand the APP. and right click "Tables" to create a table. The table creator wizard appears.


db8.png


Create your table using this wizard. When done Expand the Tables section to view your newly created table. You can add data to it if you want.

No comments:

Post a Comment

- - Important Notice - -





Programming google group is up. If you want to join request personally to any of the managers!




Message from DIUCSP




This blog is open for all students of CS, CSE, CIS of Daffodil International University.


Join This blog to stay on touch with other students. If you have a gmail account then just sign in as the g-mail user and become a follower of the blog. You can then submit comments on our posts.

You will find information on different subjects of our course, discuss problems and have solution. Try to maintain the subjectwise discussion for early response. And remember this blog is not only for the genius or more than average CS, CSE, CIS students with great computer skills so dont feel shy in submitting your simple daily life problems (even the silliest ones) because I believe if you feel shy in learning now then you will feel shy all your life for not learning it at all.


Please be conscious about sharing your personal Data, DaffodilCSE blog moderator is not responsible for any risk you take, If you feel safe post comment as your own will, If you do not want to share your mail, comment anonymously. Thanks




They are with us

There was an error in this gadget

BlogCatalog

Earn from a cool looking gadget..! It works with Google adsense and any other advertising programs!
Grab now !