|
|
|
| Web Hosting Guide |
![]() ![]() |
Want Help In Connecting DB To Java |
May 1 2006, 07:24 PM
Post
#1
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 1 Joined: 28-April 06 Member No.: 13,077 |
Actually i know how to create an independent database and how to update it manually.
But i just want to know that how can i make that update thing automatically. Like suppose if i give somekind of username and password to members of my site and i wish to have them updated , like addition , deletion or changes in password, to be automatic how can i do that. i have a rough idea that it can be done with the help of Java and jdbc but i don't know exactly. I m good at programming languages C and Java. |
|
|
|
May 2 2006, 09:38 AM
Post
#2
|
|
|
Way Out Of Control - You need a life :) Group: [MODERATOR] Posts: 2,961 Joined: 16-August 05 Member No.: 7,896 myCENTs:81.60 |
QUOTE I m good at programming languages C and Java. Yes, C language is the best way, the most performing if you have a lot of users. However, are you familiar with the embedded C for your database ? By the way, which database manager are you using ? Is it a mysql database ? I guess that most of people here use mysql with php, so they will suggest you to use php. Maybe the most efficient thing is look aroung this forum or make a google search for php sample scripts, understand the examples and adapt them to your own purposes. Regards Yordan |
|
|
|
May 3 2006, 03:57 PM
Post
#3
|
|
|
Advanced Member Group: Members Posts: 105 Joined: 22-December 05 Member No.: 10,229 |
QUOTE(amit nigam @ May 1 2006, 03:24 PM) [snapback]76941[/snapback] Actually i know how to create an independent database and how to update it manually. But i just want to know that how can i make that update thing automatically. Like suppose if i give somekind of username and password to members of my site and i wish to have them updated , like addition , deletion or changes in password, to be automatic how can i do that. i have a rough idea that it can be done with the help of Java and jdbc but i don't know exactly. I m good at programming languages C and Java. Check out this site for examples on how to set up the ODBC/JDBC connection. It's pretty simple to do with the help of examples. http://javaalmanac.com/egs/java.sql/pkg.html |
|
|
|
May 19 2006, 06:52 PM
Post
#4
|
|
|
Guilty Until Proven Innocent Group: Members Posts: 372 Joined: 13-April 05 Member No.: 3,937 |
QUOTE(amit nigam @ May 2 2006, 03:24 AM) [snapback]76941[/snapback] Actually i know how to create an independent database and how to update it manually. But i just want to know that how can i make that update thing automatically. Like suppose if i give somekind of username and password to members of my site and i wish to have them updated , like addition , deletion or changes in password, to be automatic how can i do that. i have a rough idea that it can be done with the help of Java and jdbc but i don't know exactly. I m good at programming languages C and Java. I dont know exactly if i got your question right.. It is kind of not very clear.. for automation, here is what i do.. -- this is on assumption that you have a host with mySQL 5 in it or that you can upgrade the mySQL server on the site/host. I create all needed database tables and coloumns then I write a stored procedure to be inserted to the mySQL server [Oracle style]. Then when I need to do some updates, I just call the stored procedure, the function of the stored procedure is base on your likings. My best setup is also to set a trigger command in the mySQL like a trigger of database read. On a read command [SELECT command for the database], i will just call a stored procedure found also inside the database that will update the read count column for the database I am using. eg. table data id INT data varchar readcount int trigger SELECT stored procedure sub updatecount[.....] {....} when a user use SELECT command here to the data , my read triiger will fire off then the trigger will call this stored procedure updatecount and the readcount will be updated. This post has been edited by vhortex: May 19 2006, 06:53 PM |
|
|
|
May 19 2006, 09:33 PM
Post
#5
|
|
|
Way Out Of Control - You need a life :) Group: [MODERATOR] Posts: 2,961 Joined: 16-August 05 Member No.: 7,896 myCENTs:81.60 |
QUOTE Thanks for the link : their topic is really complete (including how to download the drivers), clear and easy with the examples. |
|
|
|
Jun 15 2006, 10:04 PM
Post
#6
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 15 Joined: 15-June 06 Member No.: 13,954 |
It sounds to me like you need to do some homework on how you want to get this done. There are many many ways to get this done. I would resommend using Java, its the easiest of them all.
Using Java you have several options. 1. Use JDBC - very very simple especially if you are used to SQL queries and so on. 2. Use Persistence Objects - Advanced stuff. For Example EJBs, Hibernate e.t.c |
|
|
|
Oct 17 2009, 11:47 AM
Post
#7
|
|
|
Advanced Member Group: Members Posts: 137 Joined: 13-August 09 From: India Member No.: 42,199 myCENTs:83.73 |
you need to use the triggers mechanism in the database to do the effect and connect the database to the java or any other front end mechanism and as daniel said you need to do a lot of home work before connecting the databases
|
|
|
|
Nov 4 2009, 12:33 AM
Post
#8
|
|
|
Don't Worry, I'm here Group: Members Posts: 271 Joined: 3-October 09 From: Northeast, United States of America Member No.: 43,278 myCENTs:24.29 |
I reccomend SQL.
|
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
7 | Jimmy89 | 1,421 | 9th November 2009 - 03:53 AM Last post by: iG-amorespatricio@yahoo.com |
|||
![]() |
11 | divinity | 1,583 | 4th November 2009 - 12:35 AM Last post by: HannahI |
|||
![]() |
5 | sparkx | 704 | 4th November 2009 - 12:29 AM Last post by: HannahI |
|||
![]() |
6 | FearfullyMade | 2,893 | 28th October 2009 - 08:14 PM Last post by: HannahI |
|||
![]() |
7 | Eggie | 198 | 17th October 2009 - 02:01 PM Last post by: yordan |
|||
![]() |
17 | vicky99 | 6,427 | 17th October 2009 - 11:51 AM Last post by: surfermac |
|||
![]() |
8 | vicky99 | 3,452 | 8th October 2009 - 07:56 PM Last post by: HannahI |
|||
![]() |
8 | WeaponX | 2,183 | 8th October 2009 - 07:54 PM Last post by: HannahI |
|||
![]() |
5 | vicky99 | 2,141 | 6th October 2009 - 07:02 AM Last post by: iG-Daniel |
|||
![]() |
0 | starscream | 130 | 24th September 2009 - 12:14 PM Last post by: starscream |
|||
![]() |
7 | suicide | 5,152 | 5th September 2009 - 02:11 PM Last post by: iG-sam |
|||
![]() |
1 | surfermac | 279 | 23rd August 2009 - 09:48 PM Last post by: yordan |
|||
![]() |
7 | Kart | 2,654 | 21st August 2009 - 07:11 PM Last post by: iG-anon_anon |
|||
![]() |
17 | mahender | 12,964 | 6th July 2009 - 11:43 AM Last post by: ashish17 |
|||
![]() |
26 | Hercco | 3,652 | 22nd May 2009 - 06:05 AM Last post by: satwant007 |
|||
|
Lo-Fi Version | Time is now: 22nd November 2009 - 08:43 AM |
© 2009 AstaHost: Free Web Hosting & Technical Discussion, Free Web Hosting. a member of xisto.
Powered by Invision Board. Skin: IPB Forum Skins
Expand / Collapse Navigation



May 1 2006, 07:24 PM





