Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using JDBC on local m/c to query local db

 
John Micawary
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I wonder if anyone could advise whether JDBC can be used to allow Java code in a Java application (NOT a Java applet) to query a database on a local machine (i.e. the same machine on which the java code is run).
My client wants an application to do some processing (for which I am considering Java as a possible development environment) -- and access a database to do this processing, but without using the internet or a browser.
I would be grateful of any recommendations you may have on this topic.
Kind regards
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OUK
Welcome to the Java Ranch, we hope you�ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!

For your question: Yes, you can certainly query a local database in a java application. the only pre-requisite is that there be a driver available for the database you're going to be using.
What database do you plan on using?
Check this out for a good tutorial
 
John Micawary
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dave
Thanks very much for the quick response and useful link to the short course on JDBC... it's much appreciated.
I don't know about a database yet.. I'm exploring some different ideas whilst I firm up the exact needs of my client.
Thanks again for your help.
Kind regards
John
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic