Results 1 to 4 of 4
- 08-05-2009, 01:40 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 38
- Rep Power
- 0
Quick and easy question about SQL databases.
Hi,
I am building an application which gets alot of information from files. Since I have never used SQL in a java enviroment I decided to use hashMaps, however as I have got further into the projects this has got very messy.
Basically, all I want is a .sql which the program does queries on and stores the returned result into variables. I have been looking into how to implement SQL into java and it appears I need to install an SQL connecter and other stuff.
The question is, when I compile this program as a Jar file, will the user need to have SQL (or connecter) installed on their computer for it to work and does the sql file get packaged into the jar file.
- 08-05-2009, 01:47 PM #2
You can add the db driver to your jar file. Normally you connect to a database which is accessible over the IP of the server. Distributing a whole database is not practical. If you want to use a local DB, then that has to be installed on every client machine.
- 08-05-2009, 01:53 PM #3
Member
- Join Date
- Feb 2009
- Posts
- 38
- Rep Power
- 0
hmm... So let me get the right. I would need to host the database somewhere on the internet (or local box). Then inside the application, the db connection url would be that IP address?
If that is correct it may make things so much easier in terms of updating of database and creating some kind of validation method.
- 08-05-2009, 02:04 PM #4
Basically yes. Please read this tutorial to get an idea:
http://www.java-forums.org/java-tuto...nectivity.html
Similar Threads
-
Quick and Easy Job.
By Scottyb in forum Jobs OfferedReplies: 3Last Post: 08-11-2009, 03:48 PM -
New to Java and have an easy question
By JBOY08 in forum New To JavaReplies: 1Last Post: 11-19-2008, 07:40 PM -
quick easy question
By jmHoekst in forum New To JavaReplies: 1Last Post: 06-19-2008, 03:28 PM -
Noob question- easy
By mattonitto in forum New To JavaReplies: 7Last Post: 06-13-2008, 12:26 AM -
Easy question
By JavaNoob in forum New To JavaReplies: 10Last Post: 08-03-2007, 10:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks