I'm very interesting in inexpensive (better free) SQL query tool for working with multiple databases.
Generally speaking it should works with all databases which Hibernate supports, but it must work with Microsoft SQL Server (2000/2005/2008), Oracle (9i/10g/11g), Postgres 8.x, Sybase, Firebird, MySQL and HSQLDB.
Must have features:
SQL code completion
Syntax highlighting
Nice to have features:
Hibernate integration
Database specific options (like query execution plan)
Not sure if it worth to mentioned, but it will be used together with Eclipse (multiple workspaces).
My favorite is Squirrel SQL. Works well, simple to set up, nice GUI, works with all JDBC databases.
http://squirrel-sql.sourceforge.net/
I really liked SQUrrel until I discovered DBClient THere's also DbVisualizer but it's not free anymore
I'm really surprised nobody mentioned any Eclipse plugins which will fit neatly into your requirements. See my answer to this question. Also, MyEclipse recently released a cool visual query builder which you might want to check out.
i think everyone will give you same solution, squirrel sql ,we are all using same tool =)
Related
In the IT class room I constantly hear chat about the derby database not being built for netbeans. I write code in java and becuase I am learning to implement databases and I have the oppurtunity to be taught sql code. My question is, is the derby database not meant for netbeans and if not why why? So far it works fine for me. Our education system is a bit out of order so I like to be well informed about things.(You don't have to worry about making sense about the last statement).I use the database for recording details in shop and company scenarios so far. So answer could relate to this.
The Java DB(Derby) database is Oracle's supported distribution of Apache Derby. Java DB(Derby) is a fully transactional, secure, standards-based database server, written entirely in Java, and fully supports SQL, JDBC API, and Java EE technology. The Java DB database is packaged with the GlassFish application server, and is included in JDK 8(except Mac OS X) as well.
There is a whole official NetBeans IDE Tutorial about Working with the Java DB(Derby) Database. Whoever has suggested you those incorrect details,he might not have got to work with Derby Database OR might be a fan of Oracle/MySQL,etc. databases! But,I and all the commentators post suggest you to move frankly with Derby database as there is no such problem!
Also,I am leaving you the official tutorial's link---> Official NetBeans IDE Tutorial on Java DB(Derby) Database
I am currently working on a simple web-based program involving a user typing in a word in a client program(written in Java), and sending the word and other basic information to a database. I am finished with the word typing portion, but I have no idea what to do about the database. What software should I use for the database? Here are the requirements that I need for the database:
Read/Write Functionality
Java compatibility
Easy to use/set up
Has plenty of tutorials/documentation
Thank you all for your help!
It sounds to me that this is either a dev experiment or a school project. If this is something you're playing with I think the easiest/quickest would be to go with Sqlite. Here is some info on using it with Java: Java and SQLite
If it is something you intend to deploy in a production environment then go with mysql and jdbc.
How about sqlite?
Its very simple, extremely well supported and if you need to do some more advanced SQL queries it can do that as well.
I would use MySQL and a JDBC driver for communicating with it. The trick is to Google
java mysql jdbc
That should give a lot of usefull results. Good luck!
If you're just learning about databases and getting started, nothing is simpler than an sqlite database since it's actually nothing more than a static file. Here is a jdbc driver for it: http://www.zentus.com/sqlitejdbc/
is there any management tool for Derby database like razorSQL ? I tried to use razorSQL, but it seems to be a not good choice for me.
Here are a few useful Derby tools:
Eclipse built-in DataSource Explorer. Fine only for the most basic tasks, table view cannot even order by columns, nor can it filter records, so every such thing must be done by SQL. It's just one notch better than a shell tool.
DBVisualizer, free edition. Better than Eclipse's, but the free edition has many deliberate shortcomings, which must be paid for to make them go away.
SQuirreL SQL Client is also a useful tool for browsing and manipulating SQL databases via JDBC.
I had used Derby on Netbeans, and hadn't faced with problems you mentioned. So I can suggest you to use that.
I am new to JDBC. I would like to know what I should install in my machine before starting off with JDBC. It would be most appreciated if you can also give me links to find them.
read the tutorial first.
http://download.oracle.com/javase/tutorial/jdbc/index.html
Besides a working database, all you need is the JDK and the database-specific JDBC driver. You'll need to find and download the driver for the database you're going to use.
If you want to learn JDBC and don't care about a specific database, I can recommend HSQLDB, which is a lightweight DB that you can run on your machine or even from your process.
And I agree with qrtt1's advice - the best place to start is Sun/Oracle's JDBC tutorial.
Read "Before you Begin" in this JDBC Tutorial; for use with any JDBC Database, including Oracle, PostgreSQL, MySQL, etc.
Pretty much all you need is:
JDK 1.6 or greater installed and ready to go.
A text editor.
A JDBC Database Driver contained in products such as MySQL or PostgreSQL
I'm trying to select a JDBC driver for an application I'm building and I've found lots of drivers, but I can't seem to narrow the selection down to one. The driver I select should have the following features:
Free for commercial use
Easy to install (eg. single jar file, no drivers to install)
Easy to use (well documented)
No database server required
Multi-user / Network support
What JDBC database drivers would you suggest?
So far I've considered TinySQL and SQLite.
The database is not very large think maybe 10k records.
The JDBC driver depends on the database you want to use. Some free databases include:
Derby (small, lightweight, comes with Java 1.6)
MySQL (bigger, lots of features)
PostgreSQL (bigger, lots of features)
I'm sure there are others.
When you install the database, the documentation will tell you where to get the JDBC driver.
Unless you have specific requirements, I would have suggested that you use MySQL, it is free and very popular. Also, it is very easy to use through JDBC. However, I then saw your comment:
I want to use a JDBC driver so if I
change databases the database will
have the same interface. Right now I
need a database that meets the above
requirements.
The problem is that, as far as I know, JDBC alone isn't that flexible. With JDBC you basically pass strings to and fro the application and the database engine. If you want something that allows you to change the database but doesn't impact the way that your application and database communicate, you should consider and ORM tool like Hibernate.
The OP asked for 'no database server'. That means that there are two options in common use: Derby and HSQLDB that integrate well into Java.